You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2020/09/21 11:53:57 UTC

[mynewt-core] branch master updated (a351a4d -> a25a08d)

This is an automated email from the ASF dual-hosted git repository.

andk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git.


    from a351a4d  BMP388 Pressure/temperature sensor i2c communtication optimization (#2376)
     new f72b75c  hw/mcu|bsp/dialog: Add MCU and BSP packages for Dialog CMAC
     new 6a22ecb  hw/bsp/dialog: Enable TRNG if building with CMAC
     new 400421b  travis: Ignore dialog_cmac
     new c17204a  Update LICENSE for CMAC
     new a25a08d  Update RAT excludes

The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .rat-excludes                                      |    3 +
 .travis.yml                                        |    2 +-
 LICENSE                                            |    3 +
 hw/bsp/dialog_cmac/bsp.yml                         |   45 +
 hw/bsp/dialog_cmac/cmac.ld                         |   27 +
 hw/bsp/dialog_cmac/dialog_cmac_debug.sh            |   35 +
 hw/bsp/dialog_cmac/include/bsp/bsp.h               |   31 +
 hw/bsp/dialog_cmac/pkg.yml                         |   32 +
 .../src/arch/cortex_m0_cmac/gcc_startup_cmac.S     |  187 ++
 hw/bsp/dialog_cmac/src/hal_bsp.c                   |   39 +
 hw/bsp/{pinetime => dialog_cmac}/src/sbrk.c        |    0
 hw/bsp/dialog_cmac/syscfg.yml                      |   25 +
 hw/bsp/dialog_da1469x-dk-pro/syscfg.yml            |    3 +
 hw/mcu/dialog/cmac/cmac.ld                         |  174 ++
 .../include/cmac/arch/cortex_m0_cmac/os/os_arch.h  |   60 +
 .../cmac/arch/cortex_m0_cmac/os/os_arch_cmac.h     |   56 +
 hw/mcu/dialog/cmac/include/mcu/cmac_hal.h          |   34 +
 hw/mcu/dialog/cmac/include/mcu/cmac_pdc.h          |   47 +
 hw/mcu/dialog/cmac/include/mcu/cmac_periph.h       |   33 +
 hw/mcu/dialog/cmac/include/mcu/cmac_timer.h        |  177 ++
 hw/mcu/dialog/cmac/include/mcu/cmsis_nvic.h        |   25 +
 hw/mcu/dialog/cmac/include/mcu/cortex_m0.h         |   39 +
 hw/mcu/dialog/cmac/include/mcu/mcu.h               |   62 +
 hw/mcu/dialog/cmac/pkg.yml                         |   33 +
 .../cmac/src/arch/cortex_m0_cmac/cmac_sleep.S      |  209 ++
 .../cmac/src/arch/cortex_m0_cmac/m0/HAL_CM0.s      |  292 +++
 .../cmac/src/arch/cortex_m0_cmac/m0}/SVC_Table.s   |    0
 .../cmac/src/arch/cortex_m0_cmac/os_arch_arm.c     |  250 +++
 .../cmac/src/arch/cortex_m0_cmac/os_arch_cmac.c    |  321 ++++
 .../dialog/cmac/src/arch/cortex_m0_cmac/os_fault.c |  213 +++
 hw/mcu/dialog/cmac/src/cmac_isr.c                  |   35 +
 hw/mcu/dialog/cmac/src/cmac_periph.c               |   47 +
 hw/mcu/dialog/cmac/src/cmac_priv.h                 |   38 +
 hw/mcu/dialog/cmac/src/cmac_sleep.c                |  305 +++
 hw/mcu/dialog/cmac/src/cmac_timer.c                |  485 +++++
 hw/mcu/dialog/cmac/src/hal_os_tick.c               |  110 ++
 hw/mcu/dialog/cmac/src/hal_system.c                |   57 +
 hw/mcu/dialog/cmac/src/hal_timer.c                 |  214 +++
 hw/mcu/dialog/cmac/src/hal_watchdog.c              |   47 +
 hw/mcu/dialog/cmac/src/system_cmac.c               |   54 +
 hw/mcu/dialog/cmac/syscfg.yml                      |   81 +
 hw/mcu/dialog/include/CMAC.h                       | 2000 ++++++++++++++++++++
 hw/mcu/dialog/include/system_CMAC.h                |  267 +++
 43 files changed, 6196 insertions(+), 1 deletion(-)
 create mode 100644 hw/bsp/dialog_cmac/bsp.yml
 create mode 100755 hw/bsp/dialog_cmac/cmac.ld
 create mode 100755 hw/bsp/dialog_cmac/dialog_cmac_debug.sh
 create mode 100644 hw/bsp/dialog_cmac/include/bsp/bsp.h
 create mode 100644 hw/bsp/dialog_cmac/pkg.yml
 create mode 100644 hw/bsp/dialog_cmac/src/arch/cortex_m0_cmac/gcc_startup_cmac.S
 create mode 100644 hw/bsp/dialog_cmac/src/hal_bsp.c
 copy hw/bsp/{pinetime => dialog_cmac}/src/sbrk.c (100%)
 create mode 100644 hw/bsp/dialog_cmac/syscfg.yml
 create mode 100644 hw/mcu/dialog/cmac/cmac.ld
 create mode 100644 hw/mcu/dialog/cmac/include/cmac/arch/cortex_m0_cmac/os/os_arch.h
 create mode 100644 hw/mcu/dialog/cmac/include/cmac/arch/cortex_m0_cmac/os/os_arch_cmac.h
 create mode 100755 hw/mcu/dialog/cmac/include/mcu/cmac_hal.h
 create mode 100644 hw/mcu/dialog/cmac/include/mcu/cmac_pdc.h
 create mode 100644 hw/mcu/dialog/cmac/include/mcu/cmac_periph.h
 create mode 100644 hw/mcu/dialog/cmac/include/mcu/cmac_timer.h
 create mode 100644 hw/mcu/dialog/cmac/include/mcu/cmsis_nvic.h
 create mode 100644 hw/mcu/dialog/cmac/include/mcu/cortex_m0.h
 create mode 100644 hw/mcu/dialog/cmac/include/mcu/mcu.h
 create mode 100644 hw/mcu/dialog/cmac/pkg.yml
 create mode 100644 hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/cmac_sleep.S
 create mode 100644 hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/m0/HAL_CM0.s
 copy {kernel/os/src/arch/cortex_m7/m7 => hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/m0}/SVC_Table.s (100%)
 create mode 100644 hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/os_arch_arm.c
 create mode 100644 hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/os_arch_cmac.c
 create mode 100644 hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/os_fault.c
 create mode 100644 hw/mcu/dialog/cmac/src/cmac_isr.c
 create mode 100644 hw/mcu/dialog/cmac/src/cmac_periph.c
 create mode 100644 hw/mcu/dialog/cmac/src/cmac_priv.h
 create mode 100644 hw/mcu/dialog/cmac/src/cmac_sleep.c
 create mode 100644 hw/mcu/dialog/cmac/src/cmac_timer.c
 create mode 100644 hw/mcu/dialog/cmac/src/hal_os_tick.c
 create mode 100644 hw/mcu/dialog/cmac/src/hal_system.c
 create mode 100644 hw/mcu/dialog/cmac/src/hal_timer.c
 create mode 100644 hw/mcu/dialog/cmac/src/hal_watchdog.c
 create mode 100644 hw/mcu/dialog/cmac/src/system_cmac.c
 create mode 100644 hw/mcu/dialog/cmac/syscfg.yml
 create mode 100644 hw/mcu/dialog/include/CMAC.h
 create mode 100644 hw/mcu/dialog/include/system_CMAC.h


[mynewt-core] 02/05: hw/bsp/dialog: Enable TRNG if building with CMAC

Posted by an...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 6a22ecbeb01c90732a8633a6a62536f95a68ae45
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Wed Sep 2 17:14:53 2020 +0200

    hw/bsp/dialog: Enable TRNG if building with CMAC
    
    TRNG is required by CMAC driver, let's enable it automatically when
    needed.
---
 hw/bsp/dialog_da1469x-dk-pro/syscfg.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hw/bsp/dialog_da1469x-dk-pro/syscfg.yml b/hw/bsp/dialog_da1469x-dk-pro/syscfg.yml
index 3550295..90accc0 100644
--- a/hw/bsp/dialog_da1469x-dk-pro/syscfg.yml
+++ b/hw/bsp/dialog_da1469x-dk-pro/syscfg.yml
@@ -76,3 +76,6 @@ syscfg.vals:
     REBOOT_LOG_FLASH_AREA: FLASH_AREA_REBOOT_LOG
     NFFS_FLASH_AREA: FLASH_AREA_NFFS
     COREDUMP_FLASH_AREA: FLASH_AREA_IMAGE_1
+
+syscfg.vals.'BLE_HCI_TRANSPORT == "dialog_cmac"':
+    TRNG: 1


[mynewt-core] 01/05: hw/mcu|bsp/dialog: Add MCU and BSP packages for Dialog CMAC

Posted by an...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit f72b75c06553337c0e09ab7143530891cbf881c8
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Wed Sep 2 15:49:41 2020 +0200

    hw/mcu|bsp/dialog: Add MCU and BSP packages for Dialog CMAC
    
    This adds MCU and BSP packages for Dialog CMAC.
    
    CMAC is a separate hw block with Cortex-M0+ core and radio peripherals
    integrated into DA1469x which is capable of running protocols like BLE.
    
    Both MCU and BSP packages should be only used to run NimBLE controller,
    that means blehci app with dedicated HCI transport (both can be found
    in NimNLE repo). Running any other apps is not supported and there are
    no plans to change this. There are only a handful of HALs implemented
    which are required to run Mynewt and NimBLE.
    
    Ths MCU package uses custom arch called "cortex_m0_cmac" which is based
    on "cortex_m0" but has reworked handling of critical setions. This is
    required since Cortex-M0+ does not support BASEPRI register and thus it
    is not possible to have some interrupts enabled all the time. In new
    arch, critical sections do not disable interrupts using PRIMASK register
    as in standard M0 arch but instead they selectively enable and disable
    interrupts using ISER register. This allows critical interrupts to be
    enabled all the time while still ensuring critical section rules are
    obeyed.
---
 hw/bsp/dialog_cmac/bsp.yml                         |   45 +
 hw/bsp/dialog_cmac/cmac.ld                         |   27 +
 hw/bsp/dialog_cmac/dialog_cmac_debug.sh            |   35 +
 hw/bsp/dialog_cmac/include/bsp/bsp.h               |   31 +
 hw/bsp/dialog_cmac/pkg.yml                         |   32 +
 .../src/arch/cortex_m0_cmac/gcc_startup_cmac.S     |  187 ++
 hw/bsp/dialog_cmac/src/hal_bsp.c                   |   39 +
 hw/bsp/dialog_cmac/src/sbrk.c                      |   58 +
 hw/bsp/dialog_cmac/syscfg.yml                      |   25 +
 hw/mcu/dialog/cmac/cmac.ld                         |  174 ++
 .../include/cmac/arch/cortex_m0_cmac/os/os_arch.h  |   60 +
 .../cmac/arch/cortex_m0_cmac/os/os_arch_cmac.h     |   56 +
 hw/mcu/dialog/cmac/include/mcu/cmac_hal.h          |   34 +
 hw/mcu/dialog/cmac/include/mcu/cmac_pdc.h          |   47 +
 hw/mcu/dialog/cmac/include/mcu/cmac_periph.h       |   33 +
 hw/mcu/dialog/cmac/include/mcu/cmac_timer.h        |  177 ++
 hw/mcu/dialog/cmac/include/mcu/cmsis_nvic.h        |   25 +
 hw/mcu/dialog/cmac/include/mcu/cortex_m0.h         |   39 +
 hw/mcu/dialog/cmac/include/mcu/mcu.h               |   62 +
 hw/mcu/dialog/cmac/pkg.yml                         |   33 +
 .../cmac/src/arch/cortex_m0_cmac/cmac_sleep.S      |  209 ++
 .../cmac/src/arch/cortex_m0_cmac/m0/HAL_CM0.s      |  292 +++
 .../cmac/src/arch/cortex_m0_cmac/m0/SVC_Table.s    |   56 +
 .../cmac/src/arch/cortex_m0_cmac/os_arch_arm.c     |  250 +++
 .../cmac/src/arch/cortex_m0_cmac/os_arch_cmac.c    |  321 ++++
 .../dialog/cmac/src/arch/cortex_m0_cmac/os_fault.c |  213 +++
 hw/mcu/dialog/cmac/src/cmac_isr.c                  |   35 +
 hw/mcu/dialog/cmac/src/cmac_periph.c               |   47 +
 hw/mcu/dialog/cmac/src/cmac_priv.h                 |   38 +
 hw/mcu/dialog/cmac/src/cmac_sleep.c                |  305 +++
 hw/mcu/dialog/cmac/src/cmac_timer.c                |  485 +++++
 hw/mcu/dialog/cmac/src/hal_os_tick.c               |  110 ++
 hw/mcu/dialog/cmac/src/hal_system.c                |   57 +
 hw/mcu/dialog/cmac/src/hal_timer.c                 |  214 +++
 hw/mcu/dialog/cmac/src/hal_watchdog.c              |   47 +
 hw/mcu/dialog/cmac/src/system_cmac.c               |   54 +
 hw/mcu/dialog/cmac/syscfg.yml                      |   81 +
 hw/mcu/dialog/include/CMAC.h                       | 2000 ++++++++++++++++++++
 hw/mcu/dialog/include/system_CMAC.h                |  267 +++
 39 files changed, 6300 insertions(+)

diff --git a/hw/bsp/dialog_cmac/bsp.yml b/hw/bsp/dialog_cmac/bsp.yml
new file mode 100644
index 0000000..c686909
--- /dev/null
+++ b/hw/bsp/dialog_cmac/bsp.yml
@@ -0,0 +1,45 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+bsp.arch: cortex_m0_cmac
+bsp.compiler: "@apache-mynewt-core/compiler/arm-none-eabi-m0"
+bsp.debugscript: "@apache-mynewt-core/hw/bsp/dialog_cmac/dialog_cmac_debug.sh"
+
+bsp.linkerscript:
+    - "@apache-mynewt-core/hw/bsp/dialog_cmac/cmac.ld"
+    - "@apache-mynewt-core/hw/mcu/dialog/cmac/cmac.ld"
+
+bsp.flash_map:
+    areas:
+        FLASH_AREA_BOOTLOADER:
+            device: 0
+            offset: 0x00000000
+            size: 0
+        FLASH_AREA_IMAGE_0:
+            device: 0
+            offset: 0x00000000
+            size: 0
+        FLASH_AREA_IMAGE_1:
+            device: 0
+            offset: 0x00000000
+            size: 0
+        FLASH_AREA_IMAGE_SCRATCH:
+            device: 0
+            offset: 0x0000000
+            size: 0
diff --git a/hw/bsp/dialog_cmac/cmac.ld b/hw/bsp/dialog_cmac/cmac.ld
new file mode 100755
index 0000000..af49c20
--- /dev/null
+++ b/hw/bsp/dialog_cmac/cmac.ld
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+MEMORY
+{
+    ROM (rx) : ORIGIN = (0x00000000), LENGTH = (256 * 1024)
+    RAM (rw) : ORIGIN = (0x20000000), LENGTH = (128 * 1024)
+}
+
+/* We do not include any header, image needs to be loaded as-is */
+_imghdr_size = 0x0;
diff --git a/hw/bsp/dialog_cmac/dialog_cmac_debug.sh b/hw/bsp/dialog_cmac/dialog_cmac_debug.sh
new file mode 100755
index 0000000..518ec6d
--- /dev/null
+++ b/hw/bsp/dialog_cmac/dialog_cmac_debug.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# Called with following variables set:
+#  - CORE_PATH is absolute path to @apache-mynewt-core
+#  - BSP_PATH is absolute path to hw/bsp/bsp_name
+#  - BIN_BASENAME is the path to prefix to target binary,
+#    .elf appended to name is the ELF file
+#  - FEATURES holds the target features string
+#  - EXTRA_JTAG_CMD holds extra parameters to pass to jtag software
+#  - RESET set if target should be reset when attaching
+#  - NO_GDB set if we should not start gdb to debug
+#
+
+. $CORE_PATH/hw/scripts/jlink.sh
+
+FILE_NAME=$BIN_BASENAME.elf
+JLINK_DEV="Cortex-M0+"
+jlink_debug
diff --git a/hw/bsp/dialog_cmac/include/bsp/bsp.h b/hw/bsp/dialog_cmac/include/bsp/bsp.h
new file mode 100644
index 0000000..69e8b1c
--- /dev/null
+++ b/hw/bsp/dialog_cmac/include/bsp/bsp.h
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#ifndef H_BSP_H
+#define H_BSP_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif  /* H_BSP_H */
diff --git a/hw/bsp/dialog_cmac/pkg.yml b/hw/bsp/dialog_cmac/pkg.yml
new file mode 100644
index 0000000..effd99b
--- /dev/null
+++ b/hw/bsp/dialog_cmac/pkg.yml
@@ -0,0 +1,32 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+pkg.name: hw/bsp/dialog_cmac
+pkg.type: bsp
+pkg.description: BSP definition for Dialog CMAC
+pkg.author: "Apache Mynewt <de...@mynewt.apache.org>"
+pkg.homepage: "http://mynewt.apache.org/"
+pkg.keywords:
+    - dialog
+    - da1469x
+    - cmac
+
+pkg.deps:
+    - "@apache-mynewt-core/libc/baselibc"
+    - "@apache-mynewt-core/hw/mcu/dialog/cmac"
diff --git a/hw/bsp/dialog_cmac/src/arch/cortex_m0_cmac/gcc_startup_cmac.S b/hw/bsp/dialog_cmac/src/arch/cortex_m0_cmac/gcc_startup_cmac.S
new file mode 100644
index 0000000..da9ce52
--- /dev/null
+++ b/hw/bsp/dialog_cmac/src/arch/cortex_m0_cmac/gcc_startup_cmac.S
@@ -0,0 +1,187 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+ #include "syscfg/syscfg.h"
+
+    .syntax unified
+    .arch   armv6-m
+
+    .section .stack, "aw"
+    .align  3
+#ifdef __STACK_SIZE
+    .equ    Stack_Size, __STACK_SIZE
+#else
+    .equ    Stack_Size, 0xC00
+#endif
+    .globl  __StackTop
+    .globl  __StackLimit
+__StackLimit:
+    .space  Stack_Size
+    .size   __StackLimit, . - __StackLimit
+__StackTop:
+    .size   __StackTop, . - __StackTop
+
+    .section .heap, "aw"
+    .align  3
+#ifdef __HEAP_SIZE
+    .equ    Heap_Size, __HEAP_SIZE
+#else
+    .equ    Heap_Size, 0x100
+#endif
+    .globl  __HeapBase
+    .globl  __HeapLimit
+__HeapBase:
+    .if     Heap_Size
+    .space  Heap_Size
+    .endif
+    .size   __HeapBase, . - __HeapBase
+__HeapLimit:
+    .size   __HeapLimit, . - __HeapLimit
+
+    .section .isr_vector
+    .align 2
+    .globl  __isr_vector
+__isr_vector:
+    .long   __StackTop
+    .long   Reset_Handler
+    /* Cortex-M0+ interrupts */
+    .long   NMI_Handler
+    .long   HardFault_Handler
+    .long   0                       /* Reserved */
+    .long   0                       /* Reserved */
+    .long   0                       /* Reserved */
+    .long   0                       /* Reserved */
+    .long   0                       /* Reserved */
+    .long   0                       /* Reserved */
+    .long   0                       /* Reserved */
+    .long   SVC_Handler
+    .long   0                       /* Reserved */
+    .long   0                       /* Reserved */
+    .long   PendSV_Handler
+    .long   0                       /* Reserved */
+    /* CMAC interrupts */
+    .long   FIELD_IRQHandler
+    .long   CALLBACK_IRQHandler
+    .long   FRAME_IRQHandler
+    .long   DIAG_IRQHandler
+    .long   HW_GEN_IRQHandler
+    .long   SW_MAC_IRQHandler
+    .long   LL_TIMER2PRMTV_IRQHandler
+    .long   LL_TIMER2LLC_IRQHandler
+    .long   CRYPTO_IRQHandler
+    .long   SW_LLC_1_IRQHandler
+    .long   SW_LLC_2_IRQHandler
+    .long   SW_LLC_3_IRQHandler
+    .long   SYS2CMAC_IRQHandler
+    .long   0                       /* Reserved */
+    .long   0                       /* Reserved */
+    .long   0                       /* Reserved */
+    .size   __isr_vector, . - __isr_vector
+
+    .equ    CM_CTRL_REG,                0x40000000
+    .equ    MCPU_STATE_RETAINED,        8
+    .equ    MCPU_SWD_EN,                4
+
+    .equ    P0_SET_DATA_REG,            0x50020a08
+    .equ    P0_RESET_DATA_REG,          0x50020a10
+    .equ    P0_00_MODE_REG,             0x50020a18
+    .equ    P0_SET_PAD_LATCH_REG,       0x50000074
+
+    .text
+    .thumb
+    .thumb_func
+    .align 2
+    .globl Reset_Handler
+    .type  Reset_Handler, %function
+Reset_Handler:
+
+#if MYNEWT_VAL(MCU_DEBUG_GPIO_DEEP_SLEEP) >= 0
+    ldr     r0, =P0_SET_PAD_LATCH_REG
+    ldr     r1, =(1 << MYNEWT_VAL(MCU_DEBUG_GPIO_DEEP_SLEEP))
+    str     r1, [r0, #0]
+
+    ldr     r0, =(P0_00_MODE_REG + MYNEWT_VAL(MCU_DEBUG_GPIO_DEEP_SLEEP) * 4)
+    ldr     r1, =0x0300
+    str     r1, [r0, #0]
+
+    ldr     r4, =(1 << MYNEWT_VAL(MCU_DEBUG_GPIO_DEEP_SLEEP))
+    ldr     r5, =P0_SET_DATA_REG
+    ldr     r6, =P0_RESET_DATA_REG
+    str     r4, [r5, #0]
+    str     r4, [r6, #0]
+    str     r4, [r5, #0]
+#endif
+
+    ldr     r0, =CM_CTRL_REG
+    ldr     r1, [r0, #0]
+#if MYNEWT_VAL(CMAC_DEBUG_SWD_ENABLE)
+    movs    r2, MCPU_SWD_EN
+    orrs    r1, r1, r2
+    str     r1, [r0, #0]
+#endif
+    movs    r2, MCPU_STATE_RETAINED
+    tst     r1, r2
+    bne     cmac_sleep_do_wakeup
+
+#if MYNEWT_VAL(MCU_DEBUG_GPIO_DEEP_SLEEP) >= 0
+    str     r4, [r6, #0]
+    str     r4, [r5, #0]
+#endif
+
+/* Clear BSS */
+    movs    r0, 0
+    ldr     r1, =__bss_start__
+    ldr     r2, =__bss_end__
+.loop_bss_clear:
+    cmp     r1, r2
+    bge     .loop_bss_clear_done
+    str     r0, [r1]
+    adds    r1, r1, #4
+    b       .loop_bss_clear
+.loop_bss_clear_done:
+
+    ldr     r0, =__HeapBase
+    ldr     r1, =__HeapLimit
+    bl      _sbrkInit
+
+    bl      SystemInit
+    bl      hal_system_init
+    bl      _start
+
+    .pool
+    .size   Reset_Handler, . - Reset_Handler
+
+/* Default handlers for some interrupts */
+    .macro  IRQ handler
+    .weak   \handler
+    .set    \handler, os_default_irq_asm
+    .endm
+
+    /* Cortex-M0+ interrupts */
+    IRQ  NMI_Handler
+    IRQ  HardFault_Handler
+    /* CMAC interrupts */
+    IRQ  DIAG_IRQHandler
+    IRQ  HW_GEN_IRQHandler
+    IRQ  LL_TIMER2PRMTV_IRQHandler
+    IRQ  SW_LLC_1_IRQHandler
+    IRQ  SW_LLC_2_IRQHandler
+    IRQ  SW_LLC_3_IRQHandler
+
+.end
diff --git a/hw/bsp/dialog_cmac/src/hal_bsp.c b/hw/bsp/dialog_cmac/src/hal_bsp.c
new file mode 100644
index 0000000..95b403a
--- /dev/null
+++ b/hw/bsp/dialog_cmac/src/hal_bsp.c
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+#include "hal/hal_system.h"
+#include "mcu/cmac_periph.h"
+
+const struct hal_flash *
+hal_bsp_flash_dev(uint8_t id)
+{
+    return NULL;
+}
+
+void
+hal_bsp_init(void)
+{
+    /* Make sure system clocks have started */
+    hal_system_clock_start();
+
+    /* Create all available CMAC peripherals */
+    cmac_periph_create();
+}
diff --git a/hw/bsp/dialog_cmac/src/sbrk.c b/hw/bsp/dialog_cmac/src/sbrk.c
new file mode 100644
index 0000000..6402c8a
--- /dev/null
+++ b/hw/bsp/dialog_cmac/src/sbrk.c
@@ -0,0 +1,58 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/* put these in the data section so they are not cleared by _start */
+static char *sbrkBase __attribute__ ((section (".data")));
+static char *sbrkLimit __attribute__ ((section (".data")));
+static char *brk __attribute__ ((section (".data")));
+
+void
+_sbrkInit(char *base, char *limit)
+{
+    sbrkBase = base;
+    sbrkLimit = limit;
+    brk = base;
+}
+
+void *
+_sbrk(int incr)
+{
+    void *prev_brk;
+
+    if (incr < 0) {
+        /* Returning memory to the heap. */
+        incr = -incr;
+        if (brk - incr < sbrkBase) {
+            prev_brk = (void *)-1;
+        } else {
+            prev_brk = brk;
+            brk -= incr;
+        }
+    } else {
+        /* Allocating memory from the heap. */
+        if (sbrkLimit - brk >= incr) {
+            prev_brk = brk;
+            brk += incr;
+        } else {
+            prev_brk = (void *)-1;
+        }
+    }
+
+    return prev_brk;
+}
diff --git a/hw/bsp/dialog_cmac/syscfg.yml b/hw/bsp/dialog_cmac/syscfg.yml
new file mode 100644
index 0000000..ecbe3eb
--- /dev/null
+++ b/hw/bsp/dialog_cmac/syscfg.yml
@@ -0,0 +1,25 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+syscfg.vals:
+    OS_CPUTIME_FREQ: 32768
+    BLE_HCI_TRANSPORT: dialog_cmac
+
+syscfg.restrictions:
+    - BLE_HCI_TRANSPORT == "dialog_cmac"
diff --git a/hw/mcu/dialog/cmac/cmac.ld b/hw/mcu/dialog/cmac/cmac.ld
new file mode 100644
index 0000000..8fc8d16
--- /dev/null
+++ b/hw/mcu/dialog/cmac/cmac.ld
@@ -0,0 +1,174 @@
+/*
+ * Version: Sourcery G++ 4.5-1
+ * Support: https://support.codesourcery.com/GNUToolchain/
+ *
+ * Copyright (c) 2007, 2008, 2009, 2010 CodeSourcery, Inc.
+ *
+ * The authors hereby grant permission to use, copy, modify, distribute,
+ * and license this software and its documentation for any purpose, provided
+ * that existing copyright notices are retained in all copies and that this
+ * notice is included verbatim in any distributions.  No written agreement,
+ * license, or royalty fee is required for any of the authorized uses.
+ * Modifications to this software may be copyrighted by their authors
+ * and need not follow the licensing terms described here, provided that
+ * the new terms are clearly indicated on the first page of each file where
+ * they apply.
+ */
+OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
+
+ENTRY(Reset_Handler)
+
+SECTIONS
+{
+    .text :
+    {
+        __text = .;
+        __intvect_start__ = .;
+        __isr_vector_start = .;
+        KEEP(*(.isr_vector))
+        __isr_vector_end = .;
+
+        /* Put image info just after intvect so loader can locate it easily */
+        LONG(0xC3ACC3AC)
+        LONG(LOADADDR(.data) + SIZEOF(.data))
+        LONG(LOADADDR(.data) + end_of_ram - ADDR(.data))
+        LONG(LOADADDR(.data))
+        LONG(LOADADDR(.data) + ADDR(.shdata) - ADDR(.data))
+
+        *(.text*)
+
+        KEEP(*(.init))
+        KEEP(*(.fini))
+
+        /* .ctors */
+        *crtbegin.o(.ctors)
+        *crtbegin?.o(.ctors)
+        *(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors)
+        *(SORT(.ctors.*))
+        *(.ctors)
+
+        /* .dtors */
+        *crtbegin.o(.dtors)
+        *crtbegin?.o(.dtors)
+        *(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors)
+        *(SORT(.dtors.*))
+        *(.dtors)
+
+        *(.rodata*)
+
+        *(.eh_frame*)
+        . = ALIGN(4);
+    } > ROM
+
+    .ARM.extab :
+    {
+        *(.ARM.extab* .gnu.linkonce.armextab.*)
+        . = ALIGN(4);
+    } > ROM
+
+    .ARM.exidx :
+    {
+        *(.ARM.exidx* .gnu.linkonce.armexidx.*)
+        . = ALIGN(4);
+    } > ROM
+
+    .data : ALIGN(1K)
+    {
+        . = ALIGN(4);
+        __vector_tbl_reloc__ = .;
+        . = . + (__isr_vector_end - __isr_vector_start);
+
+        . = ALIGN(4);
+        __data_start__ = .;
+        *(vtable)
+        *(.data*)
+
+        . = ALIGN(4);
+        /* preinit data */
+        PROVIDE_HIDDEN (__preinit_array_start = .);
+        *(.preinit_array)
+        PROVIDE_HIDDEN (__preinit_array_end = .);
+
+        . = ALIGN(4);
+        /* init data */
+        PROVIDE_HIDDEN (__init_array_start = .);
+        *(SORT(.init_array.*))
+        *(.init_array)
+        PROVIDE_HIDDEN (__init_array_end = .);
+
+        . = ALIGN(4);
+        /* finit data */
+        PROVIDE_HIDDEN (__fini_array_start = .);
+        *(SORT(.fini_array.*))
+        *(.fini_array)
+        PROVIDE_HIDDEN (__fini_array_end = .);
+
+        *(.jcr)
+        . = ALIGN(4);
+        /* All data end */
+        __data_end__ = .;
+        _edata = ABSOLUTE(.);
+    } > RAM AT > ROM
+
+    .bssnz (NOLOAD) :
+    {
+        . = ALIGN(4);
+        __bssnz_start__ = .;
+        *(.bss.core.nz*)
+        . = ALIGN(4);
+        __bssnz_end__ = .;
+    } > RAM
+
+    .bss (NOLOAD) :
+    {
+        . = ALIGN(4);
+        __bss_start__ = .;
+        *(.bss*)
+        *(COMMON)
+        . = ALIGN(4);
+        __bss_end__ = .;
+    } > RAM
+
+    .heap_dummy (NOLOAD) :
+    {
+        . = ALIGN(8);
+        *(.heap*)
+    } > RAM
+
+    .stack_dummy (NOLOAD) :
+    {
+        . = ALIGN(8);
+        *(.stack*)
+    } > RAM
+
+    .shdata (NOLOAD) : ALIGN(1K)
+    {
+        __shdata_start__ = .;
+        *(.shdata)
+        __shdata_end__ = .;
+    } > RAM
+
+    . = ALIGN(1K);
+    end_of_ram = .;
+    _eram = ABSOLUTE(.);
+
+    .ram :
+    {
+        BYTE(0xAA)
+        FILL(0xAA)
+        . = . + (_eram - _edata - 1);
+    } AT > ROM
+
+    __HeapBase = ADDR(.heap_dummy);
+    __StackTop = ADDR(.shdata);
+
+    /* Move stack limit down by size of stack_dummy section */
+    __StackLimit = __StackTop - SIZEOF(.stack_dummy);
+    PROVIDE(__stack = __StackTop);
+
+    /* Top of heap is the bottom of the stack */
+    __HeapLimit = __StackLimit;
+
+    /* Check if data + heap + stack exceeds RAM limit */
+    ASSERT(__HeapBase <= __HeapLimit, "region RAM overflowed with stack")
+}
diff --git a/hw/mcu/dialog/cmac/include/cmac/arch/cortex_m0_cmac/os/os_arch.h b/hw/mcu/dialog/cmac/include/cmac/arch/cortex_m0_cmac/os/os_arch.h
new file mode 100644
index 0000000..e49c3cc
--- /dev/null
+++ b/hw/mcu/dialog/cmac/include/cmac/arch/cortex_m0_cmac/os/os_arch.h
@@ -0,0 +1,60 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#ifndef _OS_ARCH_ARM_H
+#define _OS_ARCH_ARM_H
+
+#include <stdint.h>
+#include "syscfg/syscfg.h"
+#include "mcu/cmsis_nvic.h"
+#include "mcu/cortex_m0.h"
+#include "os_arch_cmac.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* CPU status register */
+typedef uint32_t os_sr_t;
+
+/* Stack element */
+typedef uint32_t os_stack_t;
+
+/* Stack sizes for common OS tasks */
+#define OS_SANITY_STACK_SIZE (64)
+#if MYNEWT_VAL(OS_SYSVIEW)
+#define OS_IDLE_STACK_SIZE (80)
+#else
+#define OS_IDLE_STACK_SIZE (64)
+#endif
+
+static inline int
+os_arch_in_isr(void)
+{
+    return (SCB->ICSR & SCB_ICSR_VECTACTIVE_Msk) != 0;
+}
+
+/* Include common arch definitions and APIs */
+#include "os/arch/common.h"
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _OS_ARCH_ARM_H */
diff --git a/hw/mcu/dialog/cmac/include/cmac/arch/cortex_m0_cmac/os/os_arch_cmac.h b/hw/mcu/dialog/cmac/include/cmac/arch/cortex_m0_cmac/os/os_arch_cmac.h
new file mode 100644
index 0000000..9826ce8
--- /dev/null
+++ b/hw/mcu/dialog/cmac/include/cmac/arch/cortex_m0_cmac/os/os_arch_cmac.h
@@ -0,0 +1,56 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#ifndef _OS_ARCH_CMAC_H
+#define _OS_ARCH_CMAC_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* See os_arch_cmac.c */
+
+#undef NVIC_EnableIRQ
+#undef NVIC_GetEnableIRQ
+#undef NVIC_DisableIRQ
+
+#define NVIC_EnableIRQ          os_arch_cmac_enable_irq
+#define NVIC_GetEnableIRQ       os_arch_cmac_get_enable_irq
+#define NVIC_DisableIRQ         os_arch_cmac_disable_irq
+
+void os_arch_cmac_enable_irq(IRQn_Type irqn);
+uint32_t os_arch_cmac_get_enable_irq(IRQn_Type irqn);
+void os_arch_cmac_disable_irq(IRQn_Type irqn);
+uint32_t os_arch_cmac_pending_irq(void);
+
+void os_arch_cmac_wfi(void);
+int os_arch_cmac_deep_sleep(void);
+void os_arch_cmac_pendsvset(void);
+
+void os_arch_cmac_bs_ctrl_irq_block(void);
+void os_arch_cmac_bs_ctrl_irq_unblock(void);
+
+void os_arch_cmac_idle_section_enter(void);
+void os_arch_cmac_idle_section_exit(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _OS_ARCH_CMAC_H */
diff --git a/hw/mcu/dialog/cmac/include/mcu/cmac_hal.h b/hw/mcu/dialog/cmac/include/mcu/cmac_hal.h
new file mode 100755
index 0000000..9241cc1
--- /dev/null
+++ b/hw/mcu/dialog/cmac/include/mcu/cmac_hal.h
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#ifndef __MCU_CMAC_HAL_H_
+#define __MCU_CMAC_HAL_H_
+
+#include <assert.h>
+#include "CMAC.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif  /* __MCU_CMAC_HAL_H_ */
diff --git a/hw/mcu/dialog/cmac/include/mcu/cmac_pdc.h b/hw/mcu/dialog/cmac/include/mcu/cmac_pdc.h
new file mode 100644
index 0000000..b2cba09
--- /dev/null
+++ b/hw/mcu/dialog/cmac/include/mcu/cmac_pdc.h
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#ifndef __MCU_CMAC_PDC_H_
+#define __MCU_CMAC_PDC_H_
+
+#include "CMAC.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define MCU_PDC_CTRL_REGS_COUNT     16
+
+static inline void
+cmac_pdc_ack_all(void)
+{
+    int idx;
+
+    for (idx = 0; idx < MCU_PDC_CTRL_REGS_COUNT; idx++) {
+        if (PDC->PDC_PENDING_CMAC_REG & (1 << idx)) {
+            PDC->PDC_ACKNOWLEDGE_REG = idx;
+        }
+    }
+}
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __MCU_CMAC_PDC_H_ */
diff --git a/hw/mcu/dialog/cmac/include/mcu/cmac_periph.h b/hw/mcu/dialog/cmac/include/mcu/cmac_periph.h
new file mode 100644
index 0000000..474db81
--- /dev/null
+++ b/hw/mcu/dialog/cmac/include/mcu/cmac_periph.h
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#ifndef __MCU_CMAC_PERIPH_H_
+#define __MCU_CMAC_PERIPH_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void cmac_periph_create(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __MCU_CMAC_PERIPH_H_ */
diff --git a/hw/mcu/dialog/cmac/include/mcu/cmac_timer.h b/hw/mcu/dialog/cmac/include/mcu/cmac_timer.h
new file mode 100644
index 0000000..6a30378
--- /dev/null
+++ b/hw/mcu/dialog/cmac/include/mcu/cmac_timer.h
@@ -0,0 +1,177 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#ifndef __MCU_CMAC_TIMER_H_
+#define __MCU_CMAC_TIMER_H_
+
+#include <stdbool.h>
+#include <stdint.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef void (cmac_timer_int_func_t)(void);
+
+extern volatile uint32_t cm_ll_int_stat_reg;
+
+void cmac_timer_init(void);
+void cmac_timer_slp_enable(uint32_t ticks);
+void cmac_timer_slp_disable(uint32_t exp_ticks);
+bool cmac_timer_slp_update(void);
+bool cmac_timer_slp_is_ready(void);
+#if MYNEWT_VAL(MCU_SLP_TIMER_32K_ONLY)
+static inline uint32_t
+cmac_timer_slp_tick_us(void)
+{
+    return 31;
+}
+#else
+uint32_t cmac_timer_slp_tick_us(void);
+#endif
+void cmac_timer_int_hal_timer_register(cmac_timer_int_func_t func);
+void cmac_timer_int_os_tick_register(cmac_timer_int_func_t func);
+void cmac_timer_int_os_tick_clear(void);
+
+uint32_t cmac_timer_next_at(void);
+uint32_t cmac_timer_usecs_to_lp_ticks(uint32_t usecs);
+
+uint32_t cmac_timer_get_hal_os_tick(void);
+
+static inline uint32_t
+cmac_timer_read_lo(void)
+{
+    return CMAC->CM_LL_TIMER1_9_0_REG;
+}
+
+static inline uint32_t
+cmac_timer_read_hi(void)
+{
+    return CMAC->CM_LL_TIMER1_36_10_REG;
+}
+
+/* Reads lsb 32-bit value of LL Timer */
+static inline uint32_t
+cmac_timer_read32(void)
+{
+    uint32_t hi;
+    uint32_t lo;
+
+    do {
+        hi = cmac_timer_read_hi();
+        lo = cmac_timer_read_lo();
+    } while (hi != cmac_timer_read_hi());
+
+    return (hi << 10) | lo;
+}
+
+/* Reads full 37-bit value of LL Timer */
+static inline uint64_t
+cmac_timer_read64(void)
+{
+    uint32_t hi;
+    uint32_t lo;
+
+    do {
+        hi = cmac_timer_read_hi();
+        lo = cmac_timer_read_lo();
+    } while (hi != cmac_timer_read_hi());
+
+    return ((uint64_t)hi << 10) | lo;
+}
+
+static inline void
+cmac_timer_trigger_hal(void)
+{
+    cm_ll_int_stat_reg = CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_EQ_X_SEL_Msk;
+    NVIC_SetPendingIRQ(LL_TIMER2LLC_IRQn);
+}
+
+/* Write comparator value for hal_timer callback */
+static inline void
+cmac_timer_write_eq_hal_timer(uint64_t val)
+{
+    CMAC->CM_LL_TIMER1_EQ_X_HI_REG = val >> 10;
+    CMAC->CM_LL_TIMER1_EQ_X_LO_REG = val;
+    CMAC->CM_LL_INT_MSK_SET_REG = CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_EQ_X_SEL_Msk;
+
+    /*
+     * Need to check if we set comparator in the past (e.g. when trying to set
+     * it at "now" and force interrupt. Note that we cannot mark particular
+     * comparator as triggered so we just use local variable as a "shadow"
+     * register.
+     */
+    if ((int64_t)(val - cmac_timer_read64()) <= 0) {
+        cm_ll_int_stat_reg = CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_EQ_X_SEL_Msk;
+        NVIC_SetPendingIRQ(LL_TIMER2LLC_IRQn);
+    }
+}
+
+/* Disable comparator value for hal_timer callback */
+static inline void
+cmac_timer_disable_eq_hal_timer(void)
+{
+    CMAC->CM_LL_INT_MSK_CLR_REG = CMAC_CM_LL_INT_MSK_CLR_REG_LL_TIMER1_EQ_X_SEL_Msk;
+}
+
+/* Write comparator value for hal_os_tick callback */
+static inline void
+cmac_timer_write_eq_hal_os_tick(uint64_t val)
+{
+    CMAC->CM_LL_TIMER1_36_10_EQ_Y_REG = val >> 10;
+
+    if ((int32_t)((val >> 10) - cmac_timer_read_hi()) <= 0) {
+        cm_ll_int_stat_reg = CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_36_10_EQ_Y_SEL_Msk;
+        NVIC_SetPendingIRQ(LL_TIMER2LLC_IRQn);
+    }
+}
+
+/* Convert ll_timer value to hal_timer value */
+static inline uint32_t
+cmac_timer_convert_llt2hal(uint64_t val)
+{
+    return (val << 9) / 15625;
+}
+
+/* Convert ll_timer value to os_tick value */
+static inline uint32_t
+cmac_timer_convert_llt2tck(uint64_t val)
+{
+    return (val << 1) / 15625;
+}
+
+/* Convert hal_timer value to ll_timer value */
+static inline uint64_t
+cmac_timer_convert_hal2llt(uint32_t val)
+{
+    return ((uint64_t)val * 15625) >> 9;
+}
+
+/* Convert os_tick value to ll_timer value */
+static inline uint64_t
+cmac_timer_convert_tck2llt(uint32_t val)
+{
+    return ((uint64_t)val * 15625) >> 1;
+}
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __MCU_CMAC_TIMER_H_ */
diff --git a/hw/mcu/dialog/cmac/include/mcu/cmsis_nvic.h b/hw/mcu/dialog/cmac/include/mcu/cmsis_nvic.h
new file mode 100644
index 0000000..8b68180
--- /dev/null
+++ b/hw/mcu/dialog/cmac/include/mcu/cmsis_nvic.h
@@ -0,0 +1,25 @@
+/* mbed Microcontroller Library - cmsis_nvic
+ * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
+ *
+ * CMSIS-style functionality to support dynamic vectors
+ */
+
+#ifndef MBED_CMSIS_NVIC_H
+#define MBED_CMSIS_NVIC_H
+
+#include <stdint.h>
+#include "CMAC.h"
+
+#define NVIC_NUM_VECTORS      (NVIC_USER_IRQ_OFFSET + 16)
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void NVIC_Relocate(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/hw/mcu/dialog/cmac/include/mcu/cortex_m0.h b/hw/mcu/dialog/cmac/include/mcu/cortex_m0.h
new file mode 100644
index 0000000..b825bd7
--- /dev/null
+++ b/hw/mcu/dialog/cmac/include/mcu/cortex_m0.h
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#ifndef __MCU_CORTEX_M0_H__
+#define __MCU_CORTEX_M0_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define OS_TICKS_PER_SEC    (128)
+
+static inline void
+hal_debug_break(void)
+{
+    __BKPT(1);
+}
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __MCU_CORTEX_M0_H__ */
diff --git a/hw/mcu/dialog/cmac/include/mcu/mcu.h b/hw/mcu/dialog/cmac/include/mcu/mcu.h
new file mode 100644
index 0000000..28aecd2
--- /dev/null
+++ b/hw/mcu/dialog/cmac/include/mcu/mcu.h
@@ -0,0 +1,62 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#ifndef __MCU_MCU_H_
+#define __MCU_MCU_H_
+
+#include "CMAC.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define SVC_IRQ_NUMBER                  SVCall_IRQn
+
+#define MCU_MEM_SYSRAM_START_ADDRESS    (0x20000000)
+#define MCU_MEM_SYSRAM_END_ADDRESS      (0x20080000)
+
+/* Map diagnostic signal to diagnostic port (output) */
+#define MCU_DIAG_MAP(_port, _word, _evt)                                \
+    CMAC->CM_DIAG_PORT ## _port ## _REG =                               \
+        (_word << CMAC_CM_DIAG_PORT ## _port ## _REG_DIAG_WORD_Pos) |   \
+        (CMAC_CM_DIAG_WORD ## _word ## _REG_DIAG ## _word ## _ ## _evt ## _Pos << CMAC_CM_DIAG_PORT ## _port ## _REG_DIAG_BIT_Pos)
+#define MCU_DIAG_MAP_BIT(_port, _word, _evt, _bit)                      \
+    CMAC->CM_DIAG_PORT ## _port ## _REG =                               \
+        (_word << CMAC_CM_DIAG_PORT ## _port ## _REG_DIAG_WORD_Pos) |   \
+        ((CMAC_CM_DIAG_WORD ## _word ## _REG_DIAG ## _word ## _ ## _evt ## _Pos + (_bit)) << CMAC_CM_DIAG_PORT ## _port ## _REG_DIAG_BIT_Pos)
+
+/* Output diagnostic setial message */
+#ifndef MCU_DIAG_SER_DISABLE
+#define MCU_DIAG_SER(_ch) \
+    CMAC->CM_DIAG_DSER_REG = _ch;
+#else
+#define MCU_DIAG_SER(_ch)
+#endif
+
+#define MCU_DIAG_GPIO0(_pin) \
+    *(volatile uint32_t *)(0x50020A10) = 1 << (_pin)
+#define MCU_DIAG_GPIO1(_pin) \
+    *(volatile uint32_t *)(0x50020A08) = 1 << (_pin)
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __MCU_MCU_H_ */
+
diff --git a/hw/mcu/dialog/cmac/pkg.yml b/hw/mcu/dialog/cmac/pkg.yml
new file mode 100644
index 0000000..866cf51
--- /dev/null
+++ b/hw/mcu/dialog/cmac/pkg.yml
@@ -0,0 +1,33 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+pkg.name: hw/mcu/dialog/cmac
+pkg.description: MCU definition for Dialog CMAC (Cortex-M0+ core)
+pkg.author: "Apache Mynewt <de...@mynewt.apache.org>"
+pkg.homepage: "http://mynewt.apache.org/"
+pkg.keywords:
+    - dialog
+    - da1469x
+    - cmac
+
+pkg.deps:
+    - "@apache-mynewt-core/hw/cmsis-core"
+    - "@apache-mynewt-core/hw/hal"
+    - "@apache-mynewt-core/hw/mcu/dialog"
+    - "@apache-mynewt-nimble/nimble/drivers/dialog_cmac"
diff --git a/hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/cmac_sleep.S b/hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/cmac_sleep.S
new file mode 100644
index 0000000..601dcc3
--- /dev/null
+++ b/hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/cmac_sleep.S
@@ -0,0 +1,209 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+ #include "syscfg/syscfg.h"
+
+    .syntax unified
+    .arch   armv6-m
+
+    .section .bss
+    .align  3
+    .globl  cmac_sleep_state
+    .type   cmac_sleep_state, %object
+cmac_sleep_state:
+.saved_primask:
+    .space 4    /* PRIMASK */
+.saved_msp:
+    .space 4    /* MSP */
+.saved_psp:
+    .space 4    /* PSP */
+.saved_control:
+    .space 4    /* CONTROL */
+.saved_regs1:
+    .space 16   /* R4-R7 */
+.saved_regs2:
+    .space 24   /* R8-R12, LR */
+.saved_nvic:
+    .space 4    /* ISER */
+    .space 16   /* IPR[0..31] */
+.saved_scb:
+    .space 12   /* SCR, SHPR2, SHPR3 */
+
+    .size   cmac_sleep_state, . - cmac_sleep_state
+
+    .equ CM_CTRL_REG,               0x40000000
+    .equ MCPU_STATE_RETAINED,       0x08
+    .equ NVIC_BASE,                 0xE000E100
+    .equ NVIC_IPR_OFFSET,           0x300
+    .equ SCB_BASE,                  0xE000ED00
+    .equ SCB_SCR_OFFSET,            0x010
+    .equ SCB_SHPR2_OFFSET,          0x01C
+    .equ SCB_SHPR3_OFFSET,          0x020
+
+    .section .text
+    .thumb
+    .thumb_func
+    .align  2
+    .globl  cmac_sleep_do_sleep
+    .type   cmac_sleep_do_sleep, %function
+cmac_sleep_do_sleep:
+    ldr     r3, =cmac_sleep_state
+
+/* Disable interrupts and save original PRIMASK */
+    mrs     r0, PRIMASK
+    cpsid   i
+    stmia   r3!, {r0}
+
+/* Save MSP, PSP, CONTROL and general purpose registers */
+    mrs     r0, MSP
+    mrs     r1, PSP
+    mrs     r2, CONTROL
+    stmia   r3!, {r0-r2,r4-r7}
+    mov     r1, r8
+    mov     r2, r9
+    mov     r4, r10
+    mov     r5, r11
+    mov     r6, r12
+    mov     r7, lr
+    stmia   r3!, {r1-r2,r4-r7}
+
+/* Save NVIC state (ISER and IPR[0..15]) */
+    ldr     r0, =NVIC_BASE
+    ldr     r4, [r0]
+    stmia   r3!, {r4}
+    ldr     r0, =(NVIC_BASE + NVIC_IPR_OFFSET)
+    ldmia   r0!, {r4-r7}
+    stmia   r3!, {r4-r7}
+
+/* Save SCB state (SCR, SHPR2 and SHPR3) */
+    ldr     r0, =SCB_BASE
+    ldr     r4, [r0, SCB_SCR_OFFSET]
+    ldr     r5, [r0, SCB_SHPR2_OFFSET]
+    ldr     r6, [r0, SCB_SHPR3_OFFSET]
+    stmia   r3!, {r4-r6}
+
+/* Set CM_CTRL_REG[MCPU_STATE_RETAINED] */
+    ldr     r1, =CM_CTRL_REG
+    ldr     r2, [r1, #0]
+    movs    r3, MCPU_STATE_RETAINED
+    orrs    r2, r2, r3
+    str     r2, [r1, #0]
+
+#if MYNEWT_VAL(MCU_DEBUG_GPIO_DEEP_SLEEP) >= 0
+    ldr     r0, =0x50020a10
+    ldr     r1, =(1 << MYNEWT_VAL(MCU_DEBUG_GPIO_DEEP_SLEEP))
+    str     r1, [r0, #0]
+#endif
+
+/* Set SCB->SCR[SLEEPDEEP] so we can enter deep sleep */
+    ldr     r0, =(SCB_BASE + SCB_SCR_OFFSET)
+    ldr     r1, [r0, #0]
+    mov     r2, r1
+    movs    r3, #4          /* SLEEPDEEP */
+    orrs    r2, r2, r3
+    str     r2, [r0, #0]
+
+/* Sleep! */
+    dsb
+    wfi
+
+/*
+ * If deep sleep was executed we'll restart in reset handler, otherwise we just
+ * restore registers and continue by returning false to caller to indicate we
+ * did not sleep.
+ */
+    str     r1, [r0, #0]
+#if MYNEWT_VAL(MCU_DEBUG_GPIO_DEEP_SLEEP) >= 0
+    ldr     r0, =0x50020a08
+    ldr     r1, =(1 << MYNEWT_VAL(MCU_DEBUG_GPIO_DEEP_SLEEP))
+    str     r1, [r0, #0]
+#endif
+    movs    r0, #0
+
+    b       cmac_sleep_do_restore
+
+    .section .text
+    .thumb
+    .thumb_func
+    .align  2
+    .globl  cmac_sleep_do_wakeup
+    .type   cmac_sleep_do_wakeup, %function
+cmac_sleep_do_wakeup:
+/* Disable interrupts, we'll restore proper PRIMASK at the end */
+    cpsid   i
+
+ /*
+  * Temporarily restore saved MSP as temporary stack pointer to allow proper
+  * stacking in case of an exception.
+  */
+    ldr     r3, =.saved_msp
+    ldr     r3, [r3, #0]
+    mov     sp, r3
+
+ /* Restore NVIC state */
+    ldr     r3, =.saved_nvic
+    ldr     r0, =NVIC_BASE
+    ldmia   r3!, {r4}
+    str     r4, [r0, #0]
+    ldr     r0, =(NVIC_BASE + NVIC_IPR_OFFSET)
+    ldmia   r3!, {r4-r7}
+    stmia   r0!, {r4-r7}
+
+ /* Restore SCB state */
+    ldmia   r3!, {r4-r6}
+    ldr     r0, =SCB_BASE
+    str     r4, [r0, SCB_SCR_OFFSET]
+    str     r5, [r0, SCB_SHPR2_OFFSET]
+    str     r6, [r0, SCB_SHPR3_OFFSET]
+
+/* Restore MSP, PSP and CONTROL */
+    ldr     r3, =.saved_msp
+    ldmia   r3!, {r0-r2}
+    msr     MSP, r0
+    msr     PSP, r1
+    msr     CONTROL, r2
+
+/* Finish restore, return true to caller to indicate we slept */
+    movs    r0, #1
+    ldr     r3, =cmac_sleep_do_restore
+    bx      r3
+
+    .section .text
+    .thumb
+    .thumb_func
+    .align  2
+    .globl  cmac_sleep_do_restore
+    .type   cmac_sleep_do_restore, %function
+cmac_sleep_do_restore:
+    ldr     r3, =.saved_regs2
+    ldmia   r3!, {r1-r2,r4-r7}
+    mov     r8, r1
+    mov     r9, r2
+    mov     r10, r4
+    mov     r11, r5
+    mov     r12, r6
+    mov     lr, r7
+    ldr     r3, =.saved_regs1
+    ldmia   r3!, {r4-r7}
+
+    ldr     r3, =.saved_primask
+    ldr     r3, [r3, #0]
+    msr     PRIMASK, r3
+
+    bx      lr
diff --git a/hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/m0/HAL_CM0.s b/hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/m0/HAL_CM0.s
new file mode 100644
index 0000000..fe2ae7d
--- /dev/null
+++ b/hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/m0/HAL_CM0.s
@@ -0,0 +1,292 @@
+/*----------------------------------------------------------------------------
+ * Copyright (c) 1999-2009 KEIL, 2009-2013 ARM Germany GmbH
+ * All rights reserved.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *  - Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *  - Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *  - Neither the name of ARM  nor the names of its contributors may be used
+ *    to endorse or promote products derived from this software without
+ *    specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *---------------------------------------------------------------------------*/
+#include <syscfg/syscfg.h>
+#include "os/os_trace_api.h"
+
+        .file   "HAL_CM0.S"
+        .syntax unified
+
+/*----------------------------------------------------------------------------
+ *      Functions
+ *---------------------------------------------------------------------------*/
+
+        .thumb
+
+        .section ".text"
+        .align  2
+
+/*--------------------------- os_set_env ------------------------------------*/
+#       void os_set_env (void);
+#
+#   Called to switch to privileged or unprivileged thread mode. The variable
+#   'os_flags' contains the CONTROL bit LSB to set the device into the
+#   proper mode. We also use PSP so we set bit 1 (the SPSEL bit) to 1.
+#
+
+        .thumb_func
+        .type   os_set_env, %function
+        .global os_set_env
+os_set_env:
+        .fnstart
+        .cantunwind
+
+        MSR     PSP,R0
+        LDR     R0,=os_flags
+        LDRB    R0,[R0]
+        ADDS    R0, R0, #2
+        MSR     CONTROL,R0
+        ISB
+        BX      LR
+
+        .fnend
+        .size   os_set_env, .-os_set_env
+/*--------------------------- os_set_env ------------------------------------*/
+
+
+/*--------------------------- os_arch_init_task_stack------------------------*/
+#       void os_arch_init_task_stack(os_stack_t *sf);
+# NOTE: This function only stores R4 through R11 on stack. The reason we do 
+# this is that the application may have stored some values in some of the
+# registers and we want to preserve those values (position independent code
+# is a good example). The other registers are handled in the C startup code.
+        .thumb_func
+        .type   os_arch_init_task_stack, %function
+        .global os_arch_init_task_stack
+os_arch_init_task_stack:
+        .fnstart
+
+        MOV     R3,R0
+        STMIA   R0!,{R4-R7}
+        MOV     R4,R8
+        MOV     R5,R9
+        MOV     R6,R10
+        MOV     R7,R11
+        STMIA   R0!,{R4-R7}
+        LDM     R3!,{R4-R7}
+        BX      LR
+
+        .fnend
+        .size   os_arch_init_task_stack, .-os_arch_init_task_stack
+/*--------------------------- os_set_env ------------------------------------*/
+
+
+/*-------------------------- SVC_Handler ------------------------------------*/
+#       void SVC_Handler (void);
+        .thumb_func
+        .type   SVC_Handler, %function
+        .global SVC_Handler
+SVC_Handler:
+        .fnstart
+        .cantunwind
+
+        PUSH    {R4,LR}
+#if MYNEWT_VAL(OS_SYSVIEW)
+        BL      os_trace_isr_enter
+#endif
+
+        MRS     R0,PSP                  /* Read PSP */
+        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */
+        SUBS    R1,R1,#2                /* Point to SVC Instruction */
+        LDRB    R1,[R1]                 /* Load SVC Number */
+        CMP     R1,#0
+        BNE     SVC_User                /* User SVC Number > 0 */
+        LDR     R1,[R0,#16]             /* Read saved R12 from Stack */
+        MOV     R12, R1                 /* Store in R12 */
+        LDMIA   R0,{R0-R3}              /* Read R0-R3 from stack */
+        BLX     R12                     /* Call SVC Function */
+        MRS     R3,PSP                  /* Read PSP */
+        STMIA   R3!,{R0-R2}             /* Store return values */
+#if MYNEWT_VAL(OS_SYSVIEW)
+        BL      os_trace_isr_exit
+#endif
+        POP     {R4,PC}                 /* RETI */
+
+        /*------------------- User SVC ------------------------------*/
+SVC_User:
+        LDR     R2,=SVC_Count
+        LDR     R2,[R2]
+        CMP     R1,R2
+        BHI     SVC_Done                /* Overflow */
+        LDR     R4,=SVC_Table-4
+        LSLS    R1,R1,#2
+        LDR     R4,[R4,R1]              /* Load SVC Function Address */
+        MOV     LR,R4
+        LDMIA   R0,{R0-R3,R4}           /* Read R0-R3,R12 from stack */
+        MOV     R12,R4
+        BLX     LR                      /* Call SVC Function */
+        MRS     R4,PSP                  /* Read PSP */
+        STMIA   R4!,{R0-R3}             /* Function return values */
+SVC_Done:
+#if MYNEWT_VAL(OS_SYSVIEW)
+        BL      os_trace_isr_exit
+#endif
+        POP     {R4,PC}                 /* RETI */
+        .fnend
+        .size   SVC_Handler, .-SVC_Handler
+/*-------------------------- PendSV_Handler ---------------------------------*/
+#       void PendSV_Handler (void);
+        .thumb_func
+        .type   PendSV_Handler, %function
+        .global PendSV_Handler
+PendSV_Handler:
+        .fnstart
+        .cantunwind
+
+        LDR     R3,=g_os_run_list   /* Get highest priority task ready to run */
+        LDR     R2,[R3]             /* Store in R2 */
+        LDR     R3,=g_current_task  /* Get current task */
+        LDR     R1,[R3]             /* Current task in R1 */
+        CMP     R1,R2
+        BNE     context_switch
+        BX      LR                  /* RETI, no task switch */
+context_switch:
+        MRS     R0,PSP              /* Read PSP */
+        SUBS    R0,R0,#32
+        STMIA   R0!,{R4-R7}         /* Save Old context */
+        MOV     R4,R8
+        MOV     R5,R9
+        MOV     R6,R10
+        MOV     R7,R11
+        STMIA   R0!,{R4-R7}         /* Save Old context */
+        SUBS    R0,R0,#32
+
+        STR     R0,[R1,#0]          /* Update stack pointer in current task */
+        STR     R2,[R3]             /* g_current_task = highest ready */
+
+        LDR     R0,[R2,#0]          /* get stack pointer of task we will start */
+        ADDS    R0,R0, #16
+        LDMIA   R0!,{R4-R7}         /* Restore New Context */
+        MOV     R8,R4
+        MOV     R9,R5
+        MOV     R10,R6
+        MOV     R11,R7
+        MSR     PSP,R0              /* Write PSP */
+        SUBS    R0,R0,#32
+        LDMIA   R0!,{R4-R7}         /* Restore New Context */
+
+#if MYNEWT_VAL(OS_SYSVIEW)
+        PUSH    {R4,LR}
+        MOV     R0, R2
+        BL      os_trace_task_start_exec
+        POP     {R4,PC}
+#else
+        BX      LR                  /* Return to Thread Mode */
+#endif
+
+        .fnend
+        .size   PendSV_Handler, .-PendSV_Handler
+
+/* divide-by-zero */
+        .thumb_func
+	.type __aeabi_idiv0, %function
+	.global __aeabi_idiv0
+	.global __aeabi_ldiv0
+__aeabi_idiv0:
+__aeabi_ldiv0:
+        .fnstart
+        .cantunwind
+        push {r0,r1,r5}
+        ldr r0, =file_name
+        ldr r1, =__LINE__
+        ldr r5, =__assert_func
+        bx r5
+        .fnend
+        .size   __aeabi_idiv0, .-__aeabi_idiv0
+
+/*-------------------------- Defalt IRQ --------------------------------*/
+        .thumb_func
+        .type   os_default_irq_asm, %function
+        .global os_default_irq_asm
+os_default_irq_asm:
+        .fnstart
+        .cantunwind
+
+#if MYNEWT_VAL(OS_SYSVIEW)
+        PUSH    {R4,LR}
+        BL      os_trace_isr_enter
+#endif
+
+        /*
+         * LR = 0xfffffff9 if we were using MSP as SP
+         * LR = 0xfffffffd if we were using PSP as SP
+         */
+        MOV     R0,LR
+        MOVS    R1,#4
+        TST     R0,R1
+        MRS     R12,MSP
+        BEQ     using_msp_as_sp
+        MRS     R12,PSP
+using_msp_as_sp:
+        /*
+         * Push the "trap frame" structure onto stack by moving R8-R11 into 
+         * R0-R3 and then pushing R0-R3. LR gets pushed as well with LR 
+         * residing at higher memory, R8 at the lower memory address.
+         */
+        MOV     R0,R8
+        MOV     R1,R9
+        MOV     R2,R10
+        MOV     R3,R11
+#if MYNEWT_VAL(OS_SYSVIEW)
+        PUSH    {R0-R3}
+#else
+        PUSH    {R0-R3, LR}
+#endif
+        /* Now push r3 - r7. R3 is the lowest memory address. */
+        MOV     R3,R12
+        PUSH    {R3-R7}
+        MOV     R0, SP
+        BL      os_default_irq
+        POP     {R3-R7}
+        POP     {R0-R3}
+        MOV     R8,R0
+        MOV     R9,R1
+        MOV     R10,R2
+        MOV     R11,R3
+#if MYNEWT_VAL(OS_SYSVIEW)
+        BL      os_trace_isr_exit
+        POP     {R4,PC}
+#else
+        POP     {PC}                 /* Restore EXC_RETURN */
+#endif
+
+        .fnend
+        .size   os_default_irq_asm, .-os_default_irq_asm
+
+        /*
+         * Prevent libgcc unwind stuff from getting pulled in.
+         */
+        .section ".data"
+        .global __aeabi_unwind_cpp_pr0
+__aeabi_unwind_cpp_pr0:
+	.section ".rodata"
+file_name:
+	.asciz __FILE__
+        .end
+
+/*----------------------------------------------------------------------------
+ * end of file
+ *---------------------------------------------------------------------------*/
diff --git a/hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/m0/SVC_Table.s b/hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/m0/SVC_Table.s
new file mode 100644
index 0000000..2b99321
--- /dev/null
+++ b/hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/m0/SVC_Table.s
@@ -0,0 +1,56 @@
+;/*----------------------------------------------------------------------------
+; *      RL-ARM - RTX
+; *----------------------------------------------------------------------------
+; *      Name:    SVC_TABLE.S
+; *      Purpose: Pre-defined SVC Table for Cortex-M
+; *      Rev.:    V4.70
+; *----------------------------------------------------------------------------
+; *
+; * Copyright (c) 1999-2009 KEIL, 2009-2013 ARM Germany GmbH
+; * All rights reserved.
+; * Redistribution and use in source and binary forms, with or without
+; * modification, are permitted provided that the following conditions are met:
+; *  - Redistributions of source code must retain the above copyright
+; *    notice, this list of conditions and the following disclaimer.
+; *  - Redistributions in binary form must reproduce the above copyright
+; *    notice, this list of conditions and the following disclaimer in the
+; *    documentation and/or other materials provided with the distribution.
+; *  - Neither the name of ARM  nor the names of its contributors may be used
+; *    to endorse or promote products derived from this software without
+; *    specific prior written permission.
+; *
+; * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+; * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+; * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+; * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
+; * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+; * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+; * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+; * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+; * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+; * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+; * POSSIBILITY OF SUCH DAMAGE.
+; *---------------------------------------------------------------------------*/
+
+
+        .file   "SVC_Table.S"
+
+
+        .section ".svc_table"
+
+        .global  SVC_Table
+SVC_Table:
+/* Insert user SVC functions here. SVC 0 used by RTL Kernel. */
+#       .long   __SVC_1                 /* user SVC function */
+SVC_End:
+
+        .global  SVC_Count
+SVC_Count:
+        .long   (SVC_End-SVC_Table)/4
+
+
+        .end
+
+/*----------------------------------------------------------------------------
+ * end of file
+ *---------------------------------------------------------------------------*/
diff --git a/hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/os_arch_arm.c b/hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/os_arch_arm.c
new file mode 100644
index 0000000..329fd45
--- /dev/null
+++ b/hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/os_arch_arm.c
@@ -0,0 +1,250 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "mcu/mcu.h"
+#include "hal/hal_os_tick.h"
+#include "os/os_arch_cmac.h"
+/* XXX fix this... */
+#include "../../../../../../apache-mynewt-core/kernel/os/src/os_priv.h"
+
+/* Initial program status register */
+#define INITIAL_xPSR    0x01000000
+
+/* Stack frame structure */
+struct stack_frame {
+    uint32_t    r4;
+    uint32_t    r5;
+    uint32_t    r6;
+    uint32_t    r7;
+    uint32_t    r8;
+    uint32_t    r9;
+    uint32_t    r10;
+    uint32_t    r11;
+    uint32_t    r0;
+    uint32_t    r1;
+    uint32_t    r2;
+    uint32_t    r3;
+    uint32_t    r12;
+    uint32_t    lr;
+    uint32_t    pc;
+    uint32_t    xpsr;
+};
+
+#define SVC_ArgN(n) \
+  register int __r##n __asm("r"#n);
+
+#define SVC_Arg0()  \
+  SVC_ArgN(0)       \
+  SVC_ArgN(1)       \
+  SVC_ArgN(2)       \
+  SVC_ArgN(3)
+
+#define SVC_Call(f)                                                     \
+  __asm volatile                                                        \
+  (                                                                     \
+    "ldr r7,="#f"\n\t"                                                  \
+    "mov r12,r7\n\t"                                                    \
+    "svc 0"                                                             \
+    :               "=r" (__r0), "=r" (__r1), "=r" (__r2), "=r" (__r3)  \
+    :                "r" (__r0),  "r" (__r1),  "r" (__r2),  "r" (__r3)  \
+    : "r7", "r12", "lr", "cc"                                           \
+  );
+
+/* XXX: determine how we will deal with running un-privileged */
+uint32_t os_flags = OS_RUN_PRIV;
+
+void
+os_arch_ctx_sw(struct os_task *t)
+{
+    os_sched_ctx_sw_hook(t);
+
+    /* Set PendSV interrupt pending bit to force context switch */
+    os_arch_cmac_pendsvset();
+}
+
+os_stack_t *
+os_arch_task_stack_init(struct os_task *t, os_stack_t *stack_top, int size)
+{
+    int i;
+    os_stack_t *s;
+    struct stack_frame *sf;
+
+    /* Get stack frame pointer */
+    s = (os_stack_t *)((uint8_t *) stack_top - sizeof(*sf));
+
+    /* Zero out R1-R3, R12, LR */
+    for (i = 9; i < 14; ++i) {
+        s[i] = 0;
+    }
+
+    /* Set registers R4 - R11 on stack. */
+    os_arch_init_task_stack(s);
+
+    /* Set remaining portions of stack frame */
+    sf = (struct stack_frame *) s;
+    sf->xpsr = INITIAL_xPSR;
+    sf->pc = (uint32_t)t->t_func;
+    sf->r0 = (uint32_t)t->t_arg;
+
+    return s;
+}
+
+void
+os_arch_init(void)
+{
+    os_init_idle_task();
+}
+
+__attribute__((always_inline))
+static inline void
+svc_os_arch_init(void)
+{
+    SVC_Arg0();
+    SVC_Call(os_arch_init);
+}
+
+os_error_t
+os_arch_os_init(void)
+{
+    int i;
+
+    if (__get_IPSR() != 0) {
+        return OS_ERR_IN_ISR;
+    }
+
+    /* Drop priority for all interrupts */
+    for (i = 0; i < sizeof(NVIC->IP) / 4; i++) {
+        NVIC->IP[i] = -1;
+    }
+
+    NVIC_SetPriority(PendSV_IRQn, -1);
+    NVIC_SetPriority(SVC_IRQ_NUMBER, 0);
+
+    /* Check if privileged or not */
+    if ((__get_CONTROL() & 1) == 0) {
+        os_arch_init();
+    } else {
+        svc_os_arch_init();
+    }
+
+    return OS_OK;
+}
+
+uint32_t
+os_arch_start(void)
+{
+    struct os_task *t;
+
+    /* Get the highest priority ready to run to set the current task */
+    t = os_sched_next_task();
+    os_sched_set_current_task(t);
+
+    /* Adjust PSP so it looks like this task just took an exception */
+    __set_PSP((uint32_t)t->t_stackptr + offsetof(struct stack_frame, r0));
+
+    /*
+     * Initialize and start system clock timer. The interrupt priority does not
+     * matter here since it always runs on ll_timer which has predefined
+     * priority in cmac_timer.
+     */
+    os_tick_init(OS_TICKS_PER_SEC, 0);
+
+    /* Mark the OS as started, right before we run our first task */
+    g_os_started = 1;
+
+    /* Perform context switch */
+    os_arch_ctx_sw(t);
+
+    return (uint32_t)(t->t_arg);
+}
+
+__attribute__((always_inline))
+static inline void svc_os_arch_start(void)
+{
+    SVC_Arg0();
+    SVC_Call(os_arch_start);
+}
+
+/**
+ * Start the OS. First check to see if we are running with the correct stack
+ * pointer set (PSP) and privilege mode (PRIV).
+ *
+ * @return os_error_t
+ */
+os_error_t
+os_arch_os_start(void)
+{
+    os_error_t err;
+
+    /*
+     * Set the os environment. This will set stack pointers and, based
+     * on the contents of os_flags, will determine if the tasks run in
+     * priviliged or un-privileged mode.
+     *
+     * We switch to using "empty" part of idle task's stack until
+     * the svc_os_arch_start() executes SVC, and we will never return.
+     */
+    os_set_env(g_idle_task.t_stackptr - 1);
+
+    err = OS_ERR_IN_ISR;
+    if (__get_IPSR() == 0) {
+        /*
+         * The following switch statement is really just a sanity check to
+         * insure that the os initialization routine was called prior to the
+         * os start routine.
+         */
+        err = OS_OK;
+        switch (__get_CONTROL() & 0x03) {
+        /*
+         * These two cases are for completeness. Thread mode should be set
+         * to use PSP already.
+         *
+         * Fall-through intentional!
+         */
+        case 0x00:
+        case 0x01:
+            err = OS_ERR_PRIV;
+            break;
+        case 0x02:
+            /*
+             * We are running in Privileged Thread mode w/SP = PSP but we
+             * are supposed to be un-privileged.
+             */
+            if ((os_flags & 1) == OS_RUN_UNPRIV) {
+                err = OS_ERR_PRIV;
+            }
+            break;
+        case 0x03:
+            /*
+             * We are running in Unprivileged Thread mode w/SP = PSP but we
+             * are supposed to be privileged.
+             */
+            if  ((os_flags & 1) == OS_RUN_PRIV) {
+                err = OS_ERR_PRIV;
+            }
+            break;
+        }
+        if (err == OS_OK) {
+            /* Always start OS through SVC call */
+            svc_os_arch_start();
+        }
+    }
+
+    return err;
+}
diff --git a/hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/os_arch_cmac.c b/hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/os_arch_cmac.c
new file mode 100644
index 0000000..23b7ca6
--- /dev/null
+++ b/hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/os_arch_cmac.c
@@ -0,0 +1,321 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "mcu/mcu.h"
+#include "hal/hal_os_tick.h"
+#include "CMAC.h"
+
+/*
+ * Interrupts handling on CMAC needs to be a bit different than in generic M0+
+ * arch. We need FIELD, FRAME and CALLBACK interrupts to be handled in real-time
+ * as otherwise PHY will fail due to interrupt latency. For this reason we need
+ * to have BASEPRI-like behavior but since M0+ does not support BASEPRI in hw,
+ * this is emulated in sw.
+ *
+ * CMAC.h includes os_arm_cmac.h which redefines NVIC_Enable/Disable to make
+ * sure ICER/ISER is not accessed directly outside this file.
+ *
+ * Configured state for ISER is kept in shadow register (g_cmac_iser_shadow)
+ * and is applied only when not in critical section or when exiting critical
+ * section.
+ *
+ * When entering critical section all standard (i.e. other than those we need
+ * to keep always enabled) interrupts are disabled via ICER and flag is set to
+ * mimic PRIMASK behavior.
+ *
+ * Additional handling is required for PendSV since it cannot be disabled from
+ * NVIC so there is another flag which indicates that PendSV should be set. This
+ * is done when exiting critical section - we assume that PendSV is being set to
+ * pending only when in critical section (which is true for Mynewt since it's
+ * done on context switch and we do not expect our controller on CMAC to work
+ * with any other OS ever).
+ *
+ * Finally, before execuing 'wfi' we need to globally disable all interrupts but
+ * so we can restore ISER for all interrupts and thus 'wfi' will wakeup on any
+ * configured interrupt. After 'wfi', ICER is used to restore pre-wfi state and
+ * interrupts and globally unlocked.
+ */
+
+/* XXX temporary, for dev only */
+#define CMAC_ARCH_SANITY_CHECK      (1)
+
+/*
+ * There are 3 groups of interrupts:
+ * - BS_CTRL -> bistream controller (FIELD/FRAME/CALLBACK) interrupts which
+ *              are not disabled while in critical section and can be only
+ *              disabled explicitly using NVIC_DisableIRQ or blocked using
+ *              os_arch_cmac_bs_ctrl_irq_block()
+ *              these interrupts cannot call functions that access OS or other
+ *              shared data
+ * - HI_PRIO -> SW_MAC interrupt which is disabled in critical section like
+ *              other interrupts, but will be enabled when executing idle
+ *              entry/exit code so it is not affected by increased latency
+ *              introduced by that code
+ *              this interrupt can safely access OS and other shared data,
+ *              except for functions that need accurate os_time since system
+ *              tick may be not up to date
+ * - OTHER   -> all other interrupts
+ */
+
+/*
+ * XXX for now add crypto to bs_ctrl although it probably should have separate
+ *     group since it's perfectly fine for it to be enabled during handover
+ */
+#define CMAC_ARCH_I_BS_CTRL         (0x0107)
+#define CMAC_ARCH_I_HI_PRIO         (0x0020)
+#define CMAC_ARCH_I_OTHER           (0x1ed8)
+#define CMAC_ARCH_I_NON_BS_CTRL     (CMAC_ARCH_I_HI_PRIO | \
+                                     CMAC_ARCH_I_OTHER)
+#define CMAC_ARCH_I_ALL             (CMAC_ARCH_I_BS_CTRL | \
+                                     CMAC_ARCH_I_HI_PRIO | \
+                                     CMAC_ARCH_I_OTHER)
+#define CMAC_ARCH_F_PRIMASK         (0x0001)
+#define CMAC_ARCH_F_PENDSV          (0x0002)
+#define CMAC_ARCH_F_IDLE_SECTION    (0x0004)
+#define CMAC_ARCH_F_BS_CTRL_BLOCKED (0x0008)
+
+static uint16_t g_cmac_arch_flags;
+static uint16_t g_cmac_arch_iser_shadow;
+
+extern int cmac_sleep_do_sleep(void) __attribute__((naked));
+
+os_sr_t
+os_arch_save_sr(void)
+{
+    uint32_t ctx;
+
+    __disable_irq();
+
+    ctx = g_cmac_arch_flags & CMAC_ARCH_F_PRIMASK;
+
+#if CMAC_ARCH_SANITY_CHECK
+    assert(!ctx ||
+           (!(g_cmac_arch_flags & CMAC_ARCH_F_IDLE_SECTION) && !(NVIC->ISER[0] & CMAC_ARCH_I_NON_BS_CTRL)) ||
+           ((g_cmac_arch_flags & CMAC_ARCH_F_IDLE_SECTION) && !(NVIC->ISER[0] & CMAC_ARCH_I_OTHER)));
+#endif
+
+    if (g_cmac_arch_flags & CMAC_ARCH_F_IDLE_SECTION) {
+        NVIC->ICER[0] = CMAC_ARCH_I_OTHER;
+    } else {
+        NVIC->ICER[0] = CMAC_ARCH_I_NON_BS_CTRL;
+    }
+    g_cmac_arch_flags |= CMAC_ARCH_F_PRIMASK;
+
+    __enable_irq();
+
+    return ctx;
+}
+
+void
+os_arch_restore_sr(os_sr_t ctx)
+{
+    if (ctx) {
+        return;
+    }
+
+#if CMAC_ARCH_SANITY_CHECK
+    assert(g_cmac_arch_flags & CMAC_ARCH_F_PRIMASK);
+    assert(!(NVIC->ISER[0] & CMAC_ARCH_I_NON_BS_CTRL));
+#endif
+
+    __disable_irq();
+
+    if (g_cmac_arch_flags & CMAC_ARCH_F_PENDSV) {
+        SCB->ICSR = SCB_ICSR_PENDSVSET_Msk;
+    }
+    g_cmac_arch_flags &= ~(CMAC_ARCH_F_PRIMASK | CMAC_ARCH_F_PENDSV);
+
+    NVIC->ISER[0] = g_cmac_arch_iser_shadow & CMAC_ARCH_I_NON_BS_CTRL;
+
+    __enable_irq();
+}
+
+int
+os_arch_in_critical(void)
+{
+    return g_cmac_arch_flags & CMAC_ARCH_F_PRIMASK;
+}
+
+void
+os_arch_cmac_enable_irq(IRQn_Type irqn)
+{
+    uint32_t irqm = 1 << irqn;
+
+    __disable_irq();
+
+    g_cmac_arch_iser_shadow |= irqm;
+
+    /*
+     * Enable interrupt in NVIC if either:
+     * - we are not in critical section
+     * - this is BS_CTRL interrupt and they are not blocked right now
+     */
+    if (!os_arch_in_critical() ||
+        ((irqm & CMAC_ARCH_I_BS_CTRL) &&
+         !(g_cmac_arch_flags & CMAC_ARCH_F_BS_CTRL_BLOCKED))) {
+        NVIC->ISER[0] = irqm;
+    }
+
+    __enable_irq();
+}
+
+uint32_t
+os_arch_cmac_get_enable_irq(IRQn_Type irqn)
+{
+    return !!(g_cmac_arch_iser_shadow & (1 << irqn));
+}
+
+void
+os_arch_cmac_disable_irq(IRQn_Type irqn)
+{
+    __disable_irq();
+
+    NVIC->ICER[0] = 1 << irqn;
+    g_cmac_arch_iser_shadow &= ~(1 << irqn);
+
+    __enable_irq();
+}
+
+uint32_t
+os_arch_cmac_pending_irq(void)
+{
+    return NVIC->ISPR[0] & g_cmac_arch_iser_shadow;
+}
+
+void
+os_arch_cmac_wfi(void)
+{
+    /*
+     * It is quite likely that we wake up from "wfi" due to one of bs_ctrl
+     * interrupts which will be handled immediately after we enable interrupts.
+     * In such case we do not need to wake up idle process so if there are no
+     * more pending interrupts (those that are blocked by critical section) we
+     * can go to sleep again.
+     *
+     * We also need to check if F_PENDSV is not set since actual PENDSV is only
+     * set when exiting from critical section, so executing "wfi" with F_PENDSV
+     * will not cause instant wake up.
+     */
+
+    __disable_irq();
+
+    while (!(g_cmac_arch_flags & CMAC_ARCH_F_PENDSV) &&
+           !(NVIC->ISPR[0] & g_cmac_arch_iser_shadow & CMAC_ARCH_I_OTHER)) {
+        NVIC->ISER[0] = g_cmac_arch_iser_shadow & CMAC_ARCH_I_OTHER;
+        __DSB();
+        __WFI();
+        NVIC->ICER[0] = CMAC_ARCH_I_OTHER;
+
+        __enable_irq();
+        __disable_irq();
+    }
+
+    __enable_irq();
+}
+
+int
+os_arch_cmac_deep_sleep(void)
+{
+    int ret = 0;
+
+    __disable_irq();
+
+    /*
+     * Do not execute wfi if PENDSV flag is set since it will be executed only
+     * when exiting from critical section and won't prevent wfi from sleeping.
+     */
+    if (!(g_cmac_arch_flags & CMAC_ARCH_F_PENDSV)) {
+        NVIC->ISER[0] = g_cmac_arch_iser_shadow & CMAC_ARCH_I_OTHER;
+
+        ret = cmac_sleep_do_sleep();
+
+        NVIC->ICER[0] = CMAC_ARCH_I_OTHER;
+    }
+
+    __enable_irq();
+
+    return ret;
+}
+
+void
+os_arch_cmac_pendsvset(void)
+{
+    g_cmac_arch_flags |= CMAC_ARCH_F_PENDSV;
+}
+
+/*
+ * os_arch_cmac_bs_ctrl_irq_block/unblock shall only be used for controlling
+ * transition between BS_CTRL and SW_MAC interrupts. In other cases simply
+ * disable interrupt using NVIC_DisableIRQ
+ */
+
+void
+os_arch_cmac_bs_ctrl_irq_block(void)
+{
+    assert(!(g_cmac_arch_flags & CMAC_ARCH_F_BS_CTRL_BLOCKED));
+
+    __disable_irq();
+
+    NVIC->ICER[0] = CMAC_ARCH_I_BS_CTRL;
+    g_cmac_arch_flags |= CMAC_ARCH_F_BS_CTRL_BLOCKED;
+
+    __enable_irq();
+}
+
+void
+os_arch_cmac_bs_ctrl_irq_unblock(void)
+{
+    __disable_irq();
+
+    g_cmac_arch_flags &= ~CMAC_ARCH_F_BS_CTRL_BLOCKED;
+    NVIC->ISER[0] = g_cmac_arch_iser_shadow & CMAC_ARCH_I_BS_CTRL;
+
+    __enable_irq();
+}
+
+/*
+ * os_arch_cmac_idle_section_enter/exit shall only be used when entering and
+ * exiting idle handler.
+ */
+
+void
+os_arch_cmac_idle_section_enter(void)
+{
+    assert(!(g_cmac_arch_flags & CMAC_ARCH_F_IDLE_SECTION));
+
+    __disable_irq();
+
+    g_cmac_arch_flags |= CMAC_ARCH_F_IDLE_SECTION;
+    NVIC->ISER[0] = g_cmac_arch_iser_shadow & CMAC_ARCH_I_HI_PRIO;
+
+    __enable_irq();
+}
+
+void
+os_arch_cmac_idle_section_exit(void)
+{
+    assert(g_cmac_arch_flags & CMAC_ARCH_F_IDLE_SECTION);
+
+    __disable_irq();
+
+    NVIC->ICER[0] = CMAC_ARCH_I_HI_PRIO;
+    g_cmac_arch_flags &= ~CMAC_ARCH_F_IDLE_SECTION;
+
+    __enable_irq();
+}
diff --git a/hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/os_fault.c b/hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/os_fault.c
new file mode 100644
index 0000000..67adcd1
--- /dev/null
+++ b/hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/os_fault.c
@@ -0,0 +1,213 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include <stdint.h>
+#include <string.h>
+#include "syscfg/syscfg.h"
+#include "hal/hal_system.h"
+#include "CMAC.h"
+#if MYNEWT_VAL(CMAC_DEBUG_COREDUMP_ENABLE)
+#include "cmac_driver/cmac_shared.h"
+#endif
+
+#ifndef max
+#define max(a, b) ((a)>(b)?(a):(b))
+#endif
+
+struct exception_frame {
+    uint32_t r0;
+    uint32_t r1;
+    uint32_t r2;
+    uint32_t r3;
+    uint32_t r12;
+    uint32_t lr;
+    uint32_t pc;
+    uint32_t psr;
+};
+
+struct trap_frame {
+    struct exception_frame *ef;
+    uint32_t r4;
+    uint32_t r5;
+    uint32_t r6;
+    uint32_t r7;
+    uint32_t r8;
+    uint32_t r9;
+    uint32_t r10;
+    uint32_t r11;
+    uint32_t lr;    /* this LR holds EXC_RETURN */
+};
+
+#if MYNEWT_VAL(MCU_DEBUG_HCI_EVENT_ON_ASSERT)
+static void
+os_fault_send_hci_assert_event(const char *file, int line)
+{
+    struct {
+        uint8_t pkt_type;
+        uint8_t opcode;
+        uint8_t length;
+        uint8_t id;
+    }  __attribute__((packed)) ev_hdr;
+    char line_str[7];
+    int line_str_idx;
+    int digit;
+    int i;
+
+    /* Let's assume there is always full path in a file */
+    file = strrchr(file, '/');
+    file++;
+
+    /* Let's assume there are no more than 99999 lines in a file */
+    line_str[0] = ':';
+    line_str_idx = 1;
+    for (i = 10000; i; i /= 10) {
+        digit = line / i;
+        line_str[line_str_idx] = '0' + digit;
+        if (digit || (line_str_idx > 1)) {
+            line_str_idx++;
+        }
+        line -= digit * i;
+    }
+    line_str[line_str_idx] = 0;
+
+    ev_hdr.pkt_type = 0x04;
+    ev_hdr.opcode = 0xff;
+    ev_hdr.length = 1 + strlen(file) + strlen(line_str);
+    ev_hdr.id = 0;
+
+    cmac_mbox_write(&ev_hdr, sizeof(ev_hdr));
+    cmac_mbox_write(file, strlen(file));
+    cmac_mbox_write(line_str, strlen(line_str));
+}
+#endif
+
+#if MYNEWT_VAL(MCU_DEBUG_HCI_EVENT_ON_FAULT)
+static void
+put_formatted_hex(char *s, uint32_t val)
+{
+    static const char *hexd = "0123456789ABCDEF";
+    int i;
+
+    for (i = 7; i >= 0; i--, val >>= 4) {
+        s[i] = hexd[val & 0x0f];
+    }
+}
+
+static void
+os_fault_send_hci_fault_event(const struct trap_frame *tf)
+{
+
+    static const char *template1 = "pc=XXXXXXXX lr=XXXXXXXX cm_error_reg=XXXXXXXX cm_exc_stat_reg=XXXXXXXX";
+    static const char *template2 = "r0-r7=XXXXXXXX,XXXXXXXX,XXXXXXXX,XXXXXXXX,XXXXXXXX,XXXXXXXX,XXXXXXXX,XXXXXXXX";
+    const size_t payload_len = max(strlen(template1), strlen(template2));
+    struct {
+        uint8_t pkt_type;
+        uint8_t opcode;
+        uint8_t length;
+        uint8_t id;
+    }  __attribute__((packed)) ev_hdr;
+    char payload[payload_len];
+
+    ev_hdr.pkt_type = 0x04;
+    ev_hdr.opcode = 0xff;
+    ev_hdr.id = 0;
+
+    ev_hdr.length = 1 + strlen(template1);
+    memcpy(payload, template1, strlen(template1));
+    put_formatted_hex(payload + 3, tf->ef->pc);
+    put_formatted_hex(payload + 15, tf->ef->lr);
+    put_formatted_hex(payload + 37, CMAC->CM_ERROR_REG);
+    put_formatted_hex(payload + 62, CMAC->CM_EXC_STAT_REG);
+    cmac_mbox_write(&ev_hdr, sizeof(ev_hdr));
+    cmac_mbox_write(payload, strlen(template1));
+
+    ev_hdr.length = 1 + strlen(template2);
+    memcpy(payload, template2, strlen(template2));
+    put_formatted_hex(payload + 6, tf->ef->r0);
+    put_formatted_hex(payload + 15, tf->ef->r1);
+    put_formatted_hex(payload + 24, tf->ef->r2);
+    put_formatted_hex(payload + 33, tf->ef->r3);
+    put_formatted_hex(payload + 42, tf->r4);
+    put_formatted_hex(payload + 51, tf->r5);
+    put_formatted_hex(payload + 60, tf->r6);
+    put_formatted_hex(payload + 69, tf->r7);
+    cmac_mbox_write(&ev_hdr, sizeof(ev_hdr));
+    cmac_mbox_write(payload, strlen(template2));
+}
+#endif
+
+void
+__assert_func(const char *file, int line, const char *func, const char *e)
+{
+#if MYNEWT_VAL(CMAC_DEBUG_COREDUMP_ENABLE)
+    volatile struct cmac_coredump *cd = &g_cmac_shared_data.coredump;
+
+    cd->assert = (uint32_t)__builtin_return_address(0);
+    cd->assert_file = file;
+    cd->assert_line = line;
+#endif
+
+#if MYNEWT_VAL(MCU_DEBUG_HCI_EVENT_ON_ASSERT)
+    os_fault_send_hci_assert_event(file, line);
+#endif
+
+    hal_system_reset();
+}
+
+void
+os_default_irq(struct trap_frame *tf)
+{
+#if MYNEWT_VAL(CMAC_DEBUG_COREDUMP_ENABLE)
+    volatile struct cmac_coredump *cd = &g_cmac_shared_data.coredump;
+#endif
+
+    if (((SCB->ICSR & SCB_ICSR_VECTACTIVE_Msk) == (NMI_IRQn + 16)) &&
+        (CMAC->CM_EXC_STAT_REG & CMAC_CM_EXC_STAT_REG_EXC_CPU_ERROR_Msk)) {
+        /*
+         * NMI triggered by cpu_on_error exception means this was a HardFault
+         * and we have two exception frames pushed to stack - we need to use
+         * the one for HF since it points to actual code location of HF, while
+         * current exception frame points to HF handler so it's not really
+         * useful.
+         *
+         * Note that this operation in fact modifies original trap frame on
+         * stack but it does not really matter since we will reset anyway and
+         * this function does not return.
+         */
+        tf->ef++;
+    }
+
+#if MYNEWT_VAL(CMAC_DEBUG_COREDUMP_ENABLE)
+    cd->lr = tf->ef->lr;
+    cd->pc = tf->ef->pc;
+
+    cd->CM_STAT_REG = CMAC->CM_STAT_REG;
+    cd->CM_LL_TIMER1_36_10_REG = CMAC->CM_LL_TIMER1_36_10_REG;
+    cd->CM_LL_TIMER1_9_0_REG = CMAC->CM_LL_TIMER1_9_0_REG;
+    cd->CM_ERROR_REG = CMAC->CM_ERROR_REG;
+    cd->CM_EXC_STAT_REG = CMAC->CM_EXC_STAT_REG;
+#endif
+
+#if MYNEWT_VAL(MCU_DEBUG_HCI_EVENT_ON_FAULT)
+    os_fault_send_hci_fault_event(tf);
+#endif
+
+    hal_system_reset();
+}
+
diff --git a/hw/mcu/dialog/cmac/src/cmac_isr.c b/hw/mcu/dialog/cmac/src/cmac_isr.c
new file mode 100644
index 0000000..135626b
--- /dev/null
+++ b/hw/mcu/dialog/cmac/src/cmac_isr.c
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "mcu/mcu.h"
+#include "mcu/cmac_pdc.h"
+#include "cmac_driver/cmac_shared.h"
+#include "CMAC.h"
+
+void
+SYS2CMAC_IRQHandler(void)
+{
+    if (CMAC->CM_EXC_STAT_REG & CMAC_CM_EXC_STAT_REG_EXC_SYS2CMAC_Msk) {
+        cmac_mbox_read();
+        cmac_rand_read();
+        CMAC->CM_EXC_STAT_REG = CMAC_CM_EXC_STAT_REG_EXC_SYS2CMAC_Msk;
+    }
+
+    cmac_pdc_ack_all();
+}
diff --git a/hw/mcu/dialog/cmac/src/cmac_periph.c b/hw/mcu/dialog/cmac/src/cmac_periph.c
new file mode 100644
index 0000000..a801b93
--- /dev/null
+++ b/hw/mcu/dialog/cmac/src/cmac_periph.c
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include <assert.h>
+#include "syscfg/syscfg.h"
+#include "hal/hal_timer.h"
+#include "os/os_cputime.h"
+
+static void
+cmac_periph_create_timers(void)
+{
+    int rc;
+
+    (void)rc;
+
+#if MYNEWT_VAL(TIMER_0)
+    rc = hal_timer_init(0, NULL);
+    assert(rc == 0);
+#endif
+
+#if MYNEWT_VAL(OS_CPUTIME_TIMER_NUM) >= 0
+    rc = os_cputime_init(MYNEWT_VAL(OS_CPUTIME_FREQ));
+    assert(rc == 0);
+#endif
+}
+
+void
+cmac_periph_create(void)
+{
+    cmac_periph_create_timers();
+}
diff --git a/hw/mcu/dialog/cmac/src/cmac_priv.h b/hw/mcu/dialog/cmac/src/cmac_priv.h
new file mode 100644
index 0000000..dfad04e
--- /dev/null
+++ b/hw/mcu/dialog/cmac/src/cmac_priv.h
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#ifndef __MCU_CMAC_PRIV_H_
+#define __MCU_CMAC_PRIV_H_
+
+#include <stdint.h>
+#include "os/os_time.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern int8_t g_cmac_pdc_cmac2sys;
+
+void cmac_sleep(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __MCU_CMAC_PRIV_H_ */
diff --git a/hw/mcu/dialog/cmac/src/cmac_sleep.c b/hw/mcu/dialog/cmac/src/cmac_sleep.c
new file mode 100644
index 0000000..6fdcd81
--- /dev/null
+++ b/hw/mcu/dialog/cmac/src/cmac_sleep.c
@@ -0,0 +1,305 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "syscfg/syscfg.h"
+#if !MYNEWT_VAL(MCU_DEBUG_DSER_CMAC_SLEEP)
+#define MCU_DIAG_SER_DISABLE
+#endif
+
+#include <assert.h>
+#include "mcu/cmac_pdc.h"
+#include "cmac_driver/cmac_shared.h"
+#include "mcu/cmac_timer.h"
+#include "mcu/mcu.h"
+#include "hal/hal_system.h"
+#include "controller/ble_phy.h"
+#include "os/os.h"
+#include "CMAC.h"
+#include "cmac_priv.h"
+
+/* Registers to retain during deep sleep */
+static __IOM uint32_t * const retained_regs[] = {
+    &CMAC->CM_PHY_CTRL_REG,
+    &CMAC->CM_PHY_CTRL2_REG,
+    &CMAC->CM_CTRL2_REG,
+    &CMAC->CM_LL_INT_MSK_SET_REG,
+    &CMAC->CM_LL_INT_SEL_REG,
+    &CMAC->CM_LL_TIMER1_36_10_EQ_Y_REG,
+    &CMAC->CM_LL_TIMER1_EQ_X_HI_REG,
+    &CMAC->CM_LL_TIMER1_EQ_X_LO_REG,
+#if MYNEWT_VAL(CMAC_DEBUG_DIAG_ENABLE)
+    &CMAC->CM_DIAG_PORT0_REG,
+    &CMAC->CM_DIAG_PORT1_REG,
+    &CMAC->CM_DIAG_PORT2_REG,
+    &CMAC->CM_DIAG_PORT3_REG,
+    &CMAC->CM_DIAG_PORT4_REG,
+    &CMAC->CM_DIAG_PORT5_REG,
+    &CMAC->CM_DIAG_PORT6_REG,
+    &CMAC->CM_DIAG_PORT7_REG,
+    &CMAC->CM_DIAG_PORT8_REG,
+    &CMAC->CM_DIAG_PORT9_REG,
+    &CMAC->CM_DIAG_PORT10_REG,
+    &CMAC->CM_DIAG_PORT11_REG,
+    &CMAC->CM_DIAG_PORT12_REG,
+    &CMAC->CM_DIAG_PORT13_REG,
+    &CMAC->CM_DIAG_PORT14_REG,
+    &CMAC->CM_DIAG_PORT15_REG,
+#endif
+};
+
+static uint32_t g_retained_regs_val[ ARRAY_SIZE(retained_regs) ];
+
+#define WAIT_FOR_SWD_INVALID (UINT32_MAX)
+static uint32_t g_mcu_wait_for_swd_start;
+
+/* Minimum time required to go to sleep (until switch to SLP) and then wake up */
+static uint32_t g_mcu_wakeup_usecs_min;
+
+static bool
+cmac_sleep_is_switch_allowed(void)
+{
+    return (ble_phy_xcvr_state_get() == 0) &&
+           !os_arch_cmac_pending_irq() &&
+           cmac_timer_slp_is_ready();
+}
+
+static inline int
+sub27(uint32_t x, uint32_t y)
+{
+    int result;
+
+    result = x - y;
+    if (result & 0x4000000) {
+        return (result | 0xf8000000);
+    } else {
+        return (result & 0x07ffffff);
+    }
+}
+
+static bool
+cmac_sleep_is_deep_sleep_allowed(void)
+{
+    /*
+     * We wait for SWD attach until high part of LL Timer increases by 2 which
+     * is anywhere in 1-2ms range which is enough.
+     */
+    if ((g_mcu_wait_for_swd_start != WAIT_FOR_SWD_INVALID) &&
+        sub27(cmac_timer_read_hi(), g_mcu_wait_for_swd_start) >= 2) {
+        g_mcu_wait_for_swd_start = WAIT_FOR_SWD_INVALID;
+    }
+
+    return (g_mcu_wait_for_swd_start == WAIT_FOR_SWD_INVALID) &&
+           !hal_debugger_connected();
+}
+
+static void
+cmac_sleep_regs_save(void)
+{
+    __asm__ volatile (".syntax unified              \n"
+                      "1: subs %[idx], %[idx], #4   \n"
+                      "   ldr  r3, [%[reg], %[idx]] \n"
+                      "   ldr  r4, [r3]             \n"
+                      "   str  r4, [%[val], %[idx]] \n"
+                      "   bne  1b                   \n"
+                      :
+                      : [reg] "l" (retained_regs),
+                        [val] "l" (g_retained_regs_val),
+                        [idx] "l" (sizeof(retained_regs))
+                      : "r3", "r4", "memory");
+}
+
+static void
+cmac_sleep_regs_restore(void)
+{
+    __asm__ volatile (".syntax unified              \n"
+                      "1: subs %[idx], %[idx], #4   \n"
+                      "   ldr  r3, [%[reg], %[idx]] \n"
+                      "   ldr  r4, [%[val], %[idx]] \n"
+                      "   str  r4, [r3]             \n"
+                      "   bne  1b                   \n"
+                      :
+                      : [reg] "l" (retained_regs),
+                        [val] "l" (g_retained_regs_val),
+                        [idx] "l" (sizeof(retained_regs))
+                      : "r3", "r4", "memory");
+}
+
+static void
+cmac_sleep_enable_dcdc(void)
+{
+    if (!g_cmac_shared_data.dcdc.enabled) {
+        return;
+    }
+
+    *(volatile uint32_t *)0x50000314 = g_cmac_shared_data.dcdc.v18;
+    *(volatile uint32_t *)0x50000318 = g_cmac_shared_data.dcdc.v18p;
+    *(volatile uint32_t *)0x50000310 = g_cmac_shared_data.dcdc.vdd;
+    *(volatile uint32_t *)0x5000030c = g_cmac_shared_data.dcdc.v14;
+    *(volatile uint32_t *)0x50000304 = g_cmac_shared_data.dcdc.ctrl1;
+}
+
+static void
+cmac_sleep_wait4xtal(void)
+{
+    if (*(volatile uint32_t *)0x50000014 & 0x4000) {
+        return;
+    }
+
+    while (*(volatile uint32_t *)0x5001001c & 0x0000ff00);
+    *(volatile uint32_t *)0x5000001c = 1;
+}
+
+#define T_USEC(_t)          (_t)
+#define T_LPTICK(_t)        ((_t) * cmac_timer_slp_tick_us())
+#define T_LPTICK_U(_t)      (T_LPTICK(_t) * 15 / 10)
+
+static void
+cmac_sleep_calculate_wakeup_time(void)
+{
+    assert(g_cmac_shared_data.xtal32m_settle_us);
+
+    g_mcu_wakeup_usecs_min =
+        /*
+         * We need ~12us to prepare for sleep before starting switch to SLP.
+         * Switch to SLP is done by switching SLP clock to LPCLK first and then
+         * enabling SLP. The former has to be synchronized with negative edge of
+         * LPCLK and the latter happens on positive edge of LPCLK so we just
+         * assume 2 LPCLK ticks in worst case.
+         */
+        T_USEC(12) + T_LPTICK(2) +
+        /*
+         * On wake up we assume fast wake up mode which has 3 phases that take
+         * up to 2, 2 and 3 LPCLK ticks respectively (need to add some margin
+         * here for worst-worst case). XTAL32M is started at 3rd phase and we
+         * need to wait for it to settle before switch back to LLT. This is done
+         * by disabling SLP and then switching SLP clock to PCLK. Both actions
+         * are synchronized with LPCLK negative edge so take 2 LPCLK ticks in
+         * worst case. Finally, LLP compensation takes around 50us.
+         */
+        T_LPTICK_U(2) + T_LPTICK_U(2) +
+        max(T_LPTICK_U(3), T_USEC(g_cmac_shared_data.xtal32m_settle_us)) +
+        T_LPTICK(2) + T_USEC(50);
+}
+
+void
+cmac_sleep(void)
+{
+    bool switch_to_slp;
+    bool deep_sleep;
+    uint32_t wakeup_at;
+    uint32_t sleep_usecs;
+    uint32_t sleep_lp_ticks;
+    int32_t wakeup_diff;
+
+    MCU_DIAG_SER('<');
+
+    switch_to_slp = MYNEWT_VAL(MCU_SLP_TIMER);
+    deep_sleep = MYNEWT_VAL(MCU_DEEP_SLEEP);
+
+    cmac_pdc_ack_all();
+
+    if (cmac_timer_slp_update()) {
+        cmac_sleep_calculate_wakeup_time();
+    }
+
+    wakeup_at = cmac_timer_next_at();
+
+    /*
+     * At this point in time we know exactly when next LLT interrupt should
+     * happen so need to make sure we can be up and running on time.
+     */
+
+    sleep_usecs = wakeup_at - cmac_timer_read32() - g_mcu_wakeup_usecs_min;
+    if ((int32_t)sleep_usecs <= 0) {
+        switch_to_slp = false;
+        deep_sleep = false;
+        goto do_sleep;
+    }
+
+    sleep_lp_ticks = cmac_timer_usecs_to_lp_ticks(sleep_usecs);
+    if (sleep_lp_ticks <= 1) {
+        switch_to_slp = false;
+        deep_sleep = false;
+        goto do_sleep;
+    }
+
+    if (!cmac_sleep_is_switch_allowed()) {
+        switch_to_slp = false;
+        deep_sleep = false;
+    } else if (!cmac_sleep_is_deep_sleep_allowed()) {
+        deep_sleep = false;
+    }
+
+    if (deep_sleep) {
+        MCU_DIAG_SER('R');
+        cmac_sleep_regs_save();
+    }
+
+    if (switch_to_slp) {
+        MCU_DIAG_SER('T');
+        cmac_timer_slp_enable(sleep_lp_ticks);
+    }
+
+do_sleep:
+    if (deep_sleep) {
+        MCU_DIAG_SER('S');
+        deep_sleep = os_arch_cmac_deep_sleep();
+        if (deep_sleep) {
+            cmac_sleep_regs_restore();
+        } else {
+            /* We did not enter deep sleep, no need to restore registers */
+            MCU_DIAG_SER('X');
+        }
+    } else {
+        MCU_DIAG_SER('s');
+        os_arch_cmac_wfi();
+    }
+
+    if (deep_sleep) {
+        cmac_sleep_enable_dcdc();
+        cmac_sleep_wait4xtal();
+    }
+
+    if (switch_to_slp) {
+        cmac_timer_slp_disable(sleep_lp_ticks);
+
+        /*
+         * XXX
+         * This should not be really necessary if all calculations are correct
+         * and timings are as in spec, however for some reason (rounding?) when
+         * running on RCX we occasionally are few usecs past expected time here.
+         * This means LLT comparator did not match most likely and no interrupt
+         * was triggered thus anything scheduled at this wakeup is broken. So as
+         * a last resort, let's just trigger LLT interrupt manually. Note that
+         * it's ok that only LLT for HAL is triggered since os_tick is handled
+         * anyway when leaving idle.
+         */
+        wakeup_diff = (int32_t)(wakeup_at - cmac_timer_read32());
+        if (wakeup_diff <= 0) {
+            cmac_timer_trigger_hal();
+        }
+    }
+
+    if (CMAC_TIMER_SLP->CM_SLP_CTRL2_REG & CMAC_TIMER_SLP_CM_SLP_CTRL2_REG_CMAC_WAKEUP_ON_SWD_STATE_Msk) {
+        CMAC_TIMER_SLP->CM_SLP_CTRL2_REG = CMAC_TIMER_SLP_CM_SLP_CTRL2_REG_CMAC_WAKEUP_ON_SWD_STATE_Msk;
+        g_mcu_wait_for_swd_start = cmac_timer_read_hi();
+    }
+
+    MCU_DIAG_SER('>');
+}
diff --git a/hw/mcu/dialog/cmac/src/cmac_timer.c b/hw/mcu/dialog/cmac/src/cmac_timer.c
new file mode 100644
index 0000000..aca5b17
--- /dev/null
+++ b/hw/mcu/dialog/cmac/src/cmac_timer.c
@@ -0,0 +1,485 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include <assert.h>
+#include <stdbool.h>
+#include <stdint.h>
+#include "mcu/cmac_hal.h"
+#include "mcu/cmac_timer.h"
+#include "mcu/mcu.h"
+#include "cmac_driver/cmac_shared.h"
+#include "os/os.h"
+#include "CMAC.h"
+
+/*
+ * Least common multiple for 1/128 (os_tick) and 1/1000000 (ll_timer) is 2s, so
+ * we want to use 2s as sync interval to guarantee that synced tick value is not
+ * rounded. Any other value effectively disables tick sync and enables full
+ * recalculation every time.
+ */
+#define SYNC_TICK_VAL_INTERVAL              (2000000)
+#define SYNC_TICK_TICKS_PER_VAL_INTERVAL    ((SYNC_TICK_VAL_INTERVAL) / 1000000 * 128)
+
+#define COMP_TICK_HAS_PASSED(_num) \
+    (CMAC->CM_EV_LATCHED_REG & \
+     (CMAC_CM_EV_LATCHED_REG_EV1C_CLK_1US_X1_Msk << ((_num) - 1)))
+
+struct cmac_timer_slp {
+    uint32_t freq;
+#if !MYNEWT_VAL(MCU_SLP_TIMER_32K_ONLY)
+    uint32_t conv;
+    uint32_t tick_ns;
+#endif
+};
+
+static struct cmac_timer_slp g_cmac_timer_slp;
+
+static cmac_timer_int_func_t *cmac_timer_int_hal_timer;
+static cmac_timer_int_func_t *cmac_timer_int_hal_os_tick;
+
+volatile uint32_t cm_ll_int_stat_reg;
+
+void
+LL_TIMER2LLC_IRQHandler(void)
+{
+    uint32_t int_stat;
+
+    /* Clear interrupt now since callback may set comparators again */
+    int_stat = CMAC->CM_LL_INT_STAT_REG | cm_ll_int_stat_reg;
+    CMAC->CM_LL_INT_STAT_REG = int_stat;
+    CMAC->CM_EXC_STAT_REG = CMAC_CM_EXC_STAT_REG_EXC_LL_TIMER2LLC_Msk;
+    cm_ll_int_stat_reg = 0;
+
+    if (int_stat & CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_EQ_X_SEL_Msk) {
+        cmac_timer_int_hal_timer();
+    }
+
+    if (int_stat & CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_36_10_EQ_Y_SEL_Msk) {
+        cmac_timer_int_hal_os_tick();
+    }
+}
+
+static inline void
+lpclk_wait_pos(void)
+{
+    uint32_t reg;
+
+    reg = CMAC->CM_CTRL2_REG;
+    CMAC->CM_CTRL2_REG = reg | CMAC_CM_CTRL2_REG_RXEV_ON_LPCLK_POSEDGE_Msk;
+
+    __SEV();
+    __WFE();
+    __WFE();
+
+    CMAC->CM_CTRL2_REG = reg;
+}
+
+static inline void
+lpclk_wait_neg(void)
+{
+    uint32_t reg;
+
+    reg = CMAC->CM_CTRL2_REG;
+    CMAC->CM_CTRL2_REG = reg | CMAC_CM_CTRL2_REG_RXEV_ON_LPCLK_NEGEDGE_Msk;
+
+    __SEV();
+    __WFE();
+    __WFE();
+
+    CMAC->CM_CTRL2_REG = reg;
+}
+
+static void
+slp_switch_to_lpclk(void)
+{
+    uint32_t reg;
+
+    reg = CMAC_TIMER_SLP->CM_SLP_CTRL_REG;
+    reg |= CMAC_TIMER_SLP_CM_SLP_CTRL_REG_TCLK_FROM_LPCLK_Msk;
+    reg &= ~CMAC_TIMER_SLP_CM_SLP_CTRL_REG_TCLK_FROM_PCLK_Msk;
+
+    lpclk_wait_neg();
+
+    CMAC_TIMER_SLP->CM_SLP_CTRL_REG = reg;
+}
+
+static void
+slp_switch_to_pclk(void)
+{
+    uint32_t reg;
+
+    reg = CMAC_TIMER_SLP->CM_SLP_CTRL_REG;
+    reg |= CMAC_TIMER_SLP_CM_SLP_CTRL_REG_TCLK_FROM_PCLK_Msk;
+    reg &= ~CMAC_TIMER_SLP_CM_SLP_CTRL_REG_TCLK_FROM_LPCLK_Msk;
+
+    lpclk_wait_neg();
+
+    CMAC_TIMER_SLP->CM_SLP_CTRL_REG = reg;
+}
+
+static int32_t
+slp_read(void)
+{
+    assert(CMAC_TIMER_SLP->CM_SLP_CTRL_REG & CMAC_TIMER_SLP_CM_SLP_CTRL_REG_TCLK_FROM_PCLK_Msk);
+
+    return (int32_t)CMAC_TIMER_SLP->CM_SLP_TIMER_REG;
+}
+
+static void
+slp_write(uint32_t val)
+{
+    assert(!(val & 0x80000000));
+    assert(CMAC_TIMER_SLP->CM_SLP_CTRL_REG & CMAC_TIMER_SLP_CM_SLP_CTRL_REG_TCLK_FROM_PCLK_Msk);
+
+    CMAC_TIMER_SLP->CM_SLP_TIMER_REG = val;
+}
+
+static void
+switch_to_slp(void)
+{
+    slp_switch_to_lpclk();
+
+    /* We are already synchronized with neg edge after switch to lpclk */
+    CMAC_TIMER_SLP->CM_SLP_CTRL_REG |= CMAC_TIMER_SLP_CM_SLP_CTRL_REG_SLP_TIMER_SW_Msk;
+
+    lpclk_wait_pos();
+    while (!(CMAC_TIMER_SLP->CM_SLP_CTRL_REG & CMAC_TIMER_SLP_CM_SLP_CTRL_REG_SLP_TIMER_ACTIVE_Msk));
+}
+
+static void
+switch_to_llt(void)
+{
+    lpclk_wait_neg();
+    CMAC_TIMER_SLP->CM_SLP_CTRL_REG &= ~CMAC_TIMER_SLP_CM_SLP_CTRL_REG_SLP_TIMER_SW_Msk;
+
+    lpclk_wait_pos();
+    while (CMAC_TIMER_SLP->CM_SLP_CTRL_REG & CMAC_TIMER_SLP_CM_SLP_CTRL_REG_SLP_TIMER_ACTIVE_Msk);
+
+    slp_switch_to_pclk();
+}
+
+static void
+compensate_1mhz_clock(uint64_t slept_ns)
+{
+    uint32_t slept_ns_rem;
+    uint32_t clk_freq_mhz_d2m1;
+    uint32_t clk_freq_mhz;
+    uint32_t comp_timer;
+    uint32_t comp_1mhz;
+    uint32_t comp_2mhz;
+
+    slept_ns_rem = slept_ns % 1000;
+
+    clk_freq_mhz_d2m1 = (CMAC->CM_CTRL_REG &
+                         CMAC_CM_CTRL_REG_CM_CLK_FREQ_MHZ_D2M1_Msk) >>
+                        CMAC_CM_CTRL_REG_CM_CLK_FREQ_MHZ_D2M1_Pos;
+    clk_freq_mhz = 2 * (clk_freq_mhz_d2m1 + 1);
+    comp_timer = slept_ns_rem * clk_freq_mhz / 1000;
+
+    if (comp_timer > clk_freq_mhz_d2m1) {
+        comp_1mhz = 1;
+        comp_2mhz = comp_timer - clk_freq_mhz_d2m1 - 1;
+    } else {
+        comp_1mhz = 0;
+        comp_2mhz = comp_timer;
+    }
+
+    CMAC->CM_CLK_COMP_REG = (comp_1mhz << CMAC_CM_CLK_COMP_REG_CLK1MHZ_COMP_Pos) |
+                            (comp_2mhz << CMAC_CM_CLK_COMP_REG_CLK2MHZ_COMP_Pos);
+}
+
+static void
+compensate_ll_timer(uint32_t slept_us)
+{
+    uint32_t comp_ll_timer_36;
+    uint32_t comp_ll_timer_09;
+    uint32_t new_ll_timer_36;
+    uint32_t new_ll_timer_09;
+
+    /*
+     * Calculate compensation values. These values are applied 2 ticks after
+     * reading timer value so adjust it here as well.
+     */
+    comp_ll_timer_36 = slept_us / 1024;
+    comp_ll_timer_09 = slept_us % 1024;
+    comp_ll_timer_09 += 2;
+
+    /*
+     * Compiler barrier to make sure calculations are already done prior to
+     * this line since code below has strict time constraints.
+     */
+    asm volatile(""
+                 :
+                 :"r" (comp_ll_timer_36), "r" (comp_ll_timer_09)
+                 : "memory");
+
+    /*
+     * Normally we should only wait for next 1MHz tick but since prior to
+     * calling this function we run 1MHz clock compensation it may happen that
+     * the very first tick will be shorter and we won't be able to read LL Timer
+     * value during this tick. We just need to wait for next one to make sure
+     * it's a proper one.
+     */
+    CMAC->CM_CTRL2_REG |= CMAC_CM_CTRL2_REG_RXEV_ON_1MHZ_Msk;
+    __SEV();
+    __WFE();
+    __WFE();
+    __WFE();
+    CMAC->CM_EV_LATCHED_REG = 1;
+
+    /*
+     * Code below has strict time constraints: we use 2 ticks to read and then
+     * calculate compensated value of LL Timer which we apply in 3rd tick. If
+     * we fail to do any of these steps timely, LL Timer will be set incorrectly.
+     */
+
+    /* 1st tick - read current LL Timer value */
+    new_ll_timer_36 = CMAC->CM_LL_TIMER1_36_10_REG;
+    new_ll_timer_09 = CMAC->CM_LL_TIMER1_9_0_REG;
+    __WFE();
+
+    /* 2nd tick - calculate new LL Timer value */
+    new_ll_timer_09 += comp_ll_timer_09;
+    new_ll_timer_36 += comp_ll_timer_36 + new_ll_timer_09 / 1024;
+    new_ll_timer_09 %= 1024;
+    __WFE();
+
+    /* 3rd tick - write compensated value */
+    CMAC->CM_LL_TIMER1_9_0_REG = new_ll_timer_09;
+    CMAC->CM_LL_TIMER1_36_10_REG = new_ll_timer_36;
+
+#ifndef NDEBUG
+    __WFE();
+    assert(!COMP_TICK_HAS_PASSED(4));
+    assert(COMP_TICK_HAS_PASSED(3));
+#endif
+
+    CMAC->CM_CTRL2_REG &= ~CMAC_CM_CTRL2_REG_RXEV_ON_1MHZ_Msk;
+}
+
+uint32_t
+cmac_timer_get_hal_os_tick(void)
+{
+    static uint32_t sync_tick = 0;
+    static uint64_t sync_tick_val = 0;
+    static uint64_t sync_tick_val_next = SYNC_TICK_VAL_INTERVAL;
+    uint64_t val;
+    uint32_t rem_val;
+    uint32_t ret;
+
+    val = (uint64_t)cmac_timer_read_hi() << 10;
+
+    if (SYNC_TICK_VAL_INTERVAL == 2000000) {
+        while (val >= sync_tick_val_next) {
+            sync_tick_val = sync_tick_val_next;
+            sync_tick += SYNC_TICK_TICKS_PER_VAL_INTERVAL;
+            sync_tick_val_next += SYNC_TICK_VAL_INTERVAL;
+        }
+
+        rem_val = val - sync_tick_val;
+
+        ret = sync_tick + ((rem_val * 1074) >> 23);
+    } else {
+        ret = (val << 1) / 15625;
+    }
+
+    return ret;
+}
+
+void
+cmac_timer_init(void)
+{
+    /* Make sure LL Timer does not use limited range */
+    assert(CMAC->CM_CTRL2_REG & CMAC_CM_CTRL2_REG_LL_TIMER1_9_0_LIMITED_N_Msk);
+
+    /*
+     * Set EQ_X and 36_10_EQ_Y comparators to trigger LL_TIMER2LLC interrupt.
+     * They are used for hal_timer and os_tick respectively.
+     */
+    CMAC->CM_LL_INT_SEL_REG |= CMAC_CM_LL_INT_SEL_REG_LL_TIMER1_EQ_X_SEL_Msk |
+                               CMAC_CM_LL_INT_SEL_REG_LL_TIMER1_36_10_EQ_Y_SEL_Msk;
+
+    switch_to_llt();
+
+    CMAC->CM_LL_INT_MSK_SET_REG = CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_36_10_EQ_Y_SEL_Msk;
+    CMAC->CM_LL_INT_STAT_REG = UINT32_MAX;
+
+    NVIC_DisableIRQ(LL_TIMER2LLC_IRQn);
+    NVIC_SetPriority(LL_TIMER2LLC_IRQn, 2);
+    NVIC_EnableIRQ(LL_TIMER2LLC_IRQn);
+}
+
+void
+cmac_timer_slp_enable(uint32_t ticks)
+{
+    slp_write(ticks);
+    switch_to_slp();
+}
+
+void
+cmac_timer_slp_disable(uint32_t exp_ticks)
+{
+    uint32_t slept_ticks;
+    uint32_t slept_us;
+    uint64_t slept_ns;
+
+    assert(CMAC->CM_LL_INT_STAT_REG == 0);
+
+    switch_to_llt();
+
+    slept_ticks = exp_ticks - slp_read();
+
+    /* XXX optimize this since Cortex-M0+ does not do integer divisions */
+#if MYNEWT_VAL(MCU_SLP_TIMER_32K_ONLY)
+    slept_ns = (uint64_t)slept_ticks * 30518;
+#else
+    slept_ns = (uint64_t)slept_ticks * g_cmac_timer_slp.tick_ns;
+#endif
+    slept_us = slept_ns / 1000;
+
+    __disable_irq();
+    compensate_1mhz_clock(slept_ns);
+    compensate_ll_timer(slept_us);
+    __enable_irq();
+
+    CMAC_TIMER_SLP->CM_SLP_TIMER_REG = 0;
+    CMAC_TIMER_SLP->CM_SLP_CTRL2_REG = CMAC_TIMER_SLP_CM_SLP_CTRL2_REG_SLP_TIMER_IRQ_CLR_Msk;
+
+    assert(CMAC->CM_LL_INT_STAT_REG == 0);
+}
+
+bool
+cmac_timer_slp_update(void)
+{
+    if (g_cmac_shared_data.lp_clock_freq == g_cmac_timer_slp.freq) {
+        return false;
+    }
+
+    g_cmac_timer_slp.freq = g_cmac_shared_data.lp_clock_freq;
+
+#if !MYNEWT_VAL(MCU_SLP_TIMER_32K_ONLY)
+    if (g_cmac_timer_slp.freq) {
+        g_cmac_timer_slp.conv = g_cmac_timer_slp.freq * 32768 / 1000000;
+        g_cmac_timer_slp.tick_ns = 1000000000 / g_cmac_timer_slp.freq;
+    }
+#endif
+
+    return true;
+}
+
+bool
+cmac_timer_slp_is_ready(void)
+{
+#if MYNEWT_VAL(MCU_SLP_TIMER_32K_ONLY)
+    return g_cmac_timer_slp.freq == 32768;
+#else
+    return g_cmac_timer_slp.freq;
+#endif
+}
+
+#if !MYNEWT_VAL(MCU_SLP_TIMER_32K_ONLY)
+uint32_t
+cmac_timer_slp_tick_us(void)
+{
+    /* Better round tick length up so we wake up earlier than too late */
+    return g_cmac_timer_slp.tick_ns / 1000 + 1;
+}
+#endif
+
+void
+cmac_timer_int_hal_timer_register(cmac_timer_int_func_t func)
+{
+    assert(!cmac_timer_int_hal_timer);
+    cmac_timer_int_hal_timer = func;
+}
+
+void
+cmac_timer_int_os_tick_register(cmac_timer_int_func_t func)
+{
+    assert(!cmac_timer_int_hal_os_tick);
+    cmac_timer_int_hal_os_tick = func;
+}
+
+void
+cmac_timer_int_os_tick_clear(void)
+{
+    CMAC->CM_LL_INT_STAT_REG = CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_36_10_EQ_Y_SEL_Msk;
+}
+
+uint32_t
+cmac_timer_next_at(void)
+{
+    uint32_t mask;
+    uint32_t val32;
+    uint32_t reg32;
+    uint32_t to_next;
+
+    mask = CMAC->CM_LL_INT_MSK_SET_REG;
+
+#if MYNEWT_VAL(MCU_SLP_TIMER_32K_ONLY)
+    /* Max sleep time is 130s (see below) */
+    to_next = 130000000;
+#else
+    to_next = 4000000;
+#endif
+
+    val32 = cmac_timer_read32();
+
+    if (mask & CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_EQ_X_SEL_Msk) {
+        reg32 = (CMAC->CM_LL_TIMER1_EQ_X_HI_REG << 10) |
+                CMAC->CM_LL_TIMER1_EQ_X_LO_REG;
+        to_next = min(to_next, reg32 - val32);
+    }
+
+    if (mask & CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_36_10_EQ_Y_SEL_Msk) {
+        reg32 = CMAC->CM_LL_TIMER1_36_10_EQ_Y_REG << 10;
+        to_next = min(to_next, reg32 - val32);
+    }
+
+    /* XXX add handling if any other comparator is used */
+
+    return val32 + to_next;
+}
+
+uint32_t
+cmac_timer_usecs_to_lp_ticks(uint32_t usecs)
+{
+#if MYNEWT_VAL(MCU_SLP_TIMER_32K_ONLY)
+    /*
+     * To speed up calculations we use only 32 lsb of timer value and thus have
+     * limited range for sleep time we can handle. To provide best accuracy
+     * calculations are done with different precision depending on target sleep
+     * time:
+     * - for sleep time <4s result is off by no more than 2.8ms
+     * - for sleep time <60s result is off by no more than 97.4ms
+     * - for sleep time <130s result is off by no more than 2148.1ms
+     * Calculated lp_ticks sleep time is always shorter or equal to exact value
+     * so in worst case we'll wake up a bit too early and go to sleep once more.
+     */
+    if (usecs < 4000000) {
+        return (usecs * 1073) >> 15;
+    } else if (usecs < 60000000) {
+        return (usecs * 67) >> 11;
+    } else {
+        return (usecs * 33) >> 10;
+    }
+#else
+    return (usecs * g_cmac_timer_slp.conv) >> 15;
+#endif
+}
diff --git a/hw/mcu/dialog/cmac/src/hal_os_tick.c b/hw/mcu/dialog/cmac/src/hal_os_tick.c
new file mode 100644
index 0000000..ab9c527
--- /dev/null
+++ b/hw/mcu/dialog/cmac/src/hal_os_tick.c
@@ -0,0 +1,110 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "syscfg/syscfg.h"
+#if !MYNEWT_VAL(MCU_DEBUG_DSER_HAL_OS_TICK)
+#define MCU_DIAG_SER_DISABLE
+#endif
+
+#include <assert.h>
+#include "mcu/mcu.h"
+#include "mcu/cmac_timer.h"
+#include "hal/hal_os_tick.h"
+#include "cmac_priv.h"
+
+static uint32_t g_os_tick_last;
+static uint32_t g_os_tick_next;
+static uint64_t g_os_tick_next_val;
+
+static void
+os_tick_setup_for_next(uint32_t delta)
+{
+    uint32_t next;
+    uint64_t llt_val;
+
+    next = g_os_tick_last + delta;
+    if (g_os_tick_next == next) {
+        /* Don't waste time calculating the same llt_val again */
+        llt_val = g_os_tick_next_val;
+    } else {
+        /* Round up to next high part ll_timer value */
+        llt_val = cmac_timer_convert_tck2llt(next);
+        llt_val += 1024;
+        llt_val &= ~((uint64_t)0x3ff);
+
+        g_os_tick_next = next;
+        g_os_tick_next_val = llt_val;
+    }
+
+    cmac_timer_write_eq_hal_os_tick(llt_val);
+}
+
+static void
+os_tick_handle_tick(void)
+{
+    uint32_t cur_tick;
+    uint32_t delta;
+
+    cmac_timer_int_os_tick_clear();
+
+    cur_tick = cmac_timer_get_hal_os_tick();
+    delta = cur_tick - g_os_tick_last;
+    os_time_advance(delta);
+
+    g_os_tick_last = cur_tick;
+    os_tick_setup_for_next(1);
+}
+
+static void
+os_tick_cmac_timer_cb(void)
+{
+    os_tick_handle_tick();
+}
+
+void
+os_tick_idle(os_time_t ticks)
+{
+    MCU_DIAG_SER('(');
+
+    os_arch_cmac_idle_section_enter();
+
+    if (ticks > 0) {
+        os_tick_setup_for_next(ticks);
+    }
+
+    cmac_sleep();
+
+    os_tick_handle_tick();
+
+    os_arch_cmac_idle_section_exit();
+
+    MCU_DIAG_SER(')');
+}
+
+void
+os_tick_init(uint32_t os_ticks_per_sec, int prio)
+{
+    assert(os_ticks_per_sec == 128);
+
+    g_os_tick_last = 0;
+
+    cmac_timer_int_os_tick_register(os_tick_cmac_timer_cb);
+
+    os_tick_setup_for_next(1);
+}
diff --git a/hw/mcu/dialog/cmac/src/hal_system.c b/hw/mcu/dialog/cmac/src/hal_system.c
new file mode 100644
index 0000000..cf2be99
--- /dev/null
+++ b/hw/mcu/dialog/cmac/src/hal_system.c
@@ -0,0 +1,57 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include <assert.h>
+#include "hal/hal_system.h"
+#include "mcu/cmsis_nvic.h"
+
+void
+hal_system_init(void)
+{
+}
+
+void
+hal_system_reset(void)
+{
+    /*
+     * Do not reset here since it will make M0 and M33 out of sync. Instead just
+     * signal FW error and let M33 do it.
+     */
+
+    __disable_irq();
+
+    if (hal_debugger_connected()) {
+        asm("bkpt");
+    }
+
+    CMAC->CM_EXC_STAT_REG = CMAC_CM_EXC_STAT_REG_EXC_FW_ERROR_Msk;
+
+    for (;;);
+}
+
+int
+hal_debugger_connected(void)
+{
+    return CMAC->CM_STAT_REG & CMAC_CM_STAT_REG_SWD_ATTACHED_Msk;
+}
+
+void
+hal_system_clock_start(void)
+{
+}
diff --git a/hw/mcu/dialog/cmac/src/hal_timer.c b/hw/mcu/dialog/cmac/src/hal_timer.c
new file mode 100644
index 0000000..29fa94b
--- /dev/null
+++ b/hw/mcu/dialog/cmac/src/hal_timer.c
@@ -0,0 +1,214 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+#include "syscfg/syscfg.h"
+#include "mcu/mcu.h"
+#include "mcu/cmac_hal.h"
+#include "mcu/cmac_timer.h"
+#include "hal/hal_timer.h"
+#include "sys/queue.h"
+#include "defs/error.h"
+#include "os/os_arch.h"
+#include "os/util.h"
+
+#define TICKS_GT(_t1, _t2)          ((int64_t)((_t1) - (_t2)) > 0)
+#define TICKS_GTE(_t1, _t2)         ((int64_t)((_t1) - (_t2)) >= 0)
+#define TICKS_LT(_t1, _t2)          ((int64_t)((_t1) - (_t2)) < 0)
+#define TICKS_LTE(_t1, _t2)         ((int64_t)((_t1) - (_t2)) <= 0)
+
+static TAILQ_HEAD(hal_timer_qhead, hal_timer) g_hal_timer_queue;
+
+/*
+ * To avoid converting back and forth between uint64_t values returned by
+ * cmac_timer and uint32_t representing hal_timer ticks, we compare cmac_timer
+ * ticks everywhere. For this we need to store expiry value as uint64_t, so we
+ * use bsp_timer (which is not used here since we only have one timer) pointer
+ * to store high word of value.
+ */
+
+static inline uint64_t
+hal_timer_expiry_get(struct hal_timer *timer)
+{
+    uint64_t ret;
+
+    ret = (uint64_t)POINTER_TO_UINT(timer->bsp_timer) << 10;
+    ret |= timer->expiry;
+
+    return ret;
+}
+
+static inline void
+hal_timer_expiry_set(struct hal_timer *timer, uint64_t val)
+{
+    timer->expiry = val & 0x3ff;
+    timer->bsp_timer = UINT_TO_POINTER(val >> 10);
+}
+
+static void
+hal_timer_check_queue(void)
+{
+    os_sr_t sr;
+    struct hal_timer *e;
+    uint64_t ll_timer_val;
+
+    OS_ENTER_CRITICAL(sr);
+
+    while ((e = TAILQ_FIRST(&g_hal_timer_queue)) != NULL) {
+        ll_timer_val = cmac_timer_read64();
+        if (TICKS_GT(hal_timer_expiry_get(e), ll_timer_val)) {
+            break;
+        }
+
+        TAILQ_REMOVE(&g_hal_timer_queue, e, link);
+        e->link.tqe_prev = NULL;
+        e->cb_func(e->cb_arg);
+    }
+
+    if (e != NULL) {
+        cmac_timer_write_eq_hal_timer(hal_timer_expiry_get(e));
+    } else {
+        cmac_timer_disable_eq_hal_timer();
+    }
+
+    OS_EXIT_CRITICAL(sr);
+}
+
+static void
+hal_timer_cmac_timer_cb(void)
+{
+#if MYNEWT_VAL(TIMER_0)
+    hal_timer_check_queue();
+#endif
+}
+
+int
+hal_timer_init(int timer_num, void *cfg)
+{
+    assert(timer_num == 0);
+
+    cmac_timer_int_hal_timer_register(hal_timer_cmac_timer_cb);
+
+    TAILQ_INIT(&g_hal_timer_queue);
+
+    return 0;
+}
+
+int
+hal_timer_config(int timer_num, uint32_t freq_hz)
+{
+    assert(timer_num == 0);
+    assert(freq_hz == 32768);
+
+    return 0;
+}
+
+int
+hal_timer_set_cb(int timer_num, struct hal_timer *timer, hal_timer_cb func,
+                 void *arg)
+{
+    assert(timer_num == 0);
+
+    timer->cb_func = func;
+    timer->cb_arg = arg;
+    timer->link.tqe_prev = NULL;
+
+    return 0;
+}
+
+int
+hal_timer_start_at(struct hal_timer *timer, uint32_t tick)
+{
+    struct hal_timer *e;
+    os_sr_t sr;
+    uint64_t expiry;
+
+    assert(timer);
+    assert(timer->link.tqe_prev == NULL);
+    assert(timer->cb_func);
+
+    expiry = cmac_timer_convert_hal2llt(tick);
+    hal_timer_expiry_set(timer, expiry);
+
+    OS_ENTER_CRITICAL(sr);
+
+    if (TAILQ_EMPTY(&g_hal_timer_queue)) {
+        TAILQ_INSERT_HEAD(&g_hal_timer_queue, timer, link);
+    } else {
+        TAILQ_FOREACH(e, &g_hal_timer_queue, link) {
+            if (TICKS_LT(expiry, hal_timer_expiry_get(e))) {
+                TAILQ_INSERT_BEFORE(e, timer, link);
+                break;
+            }
+        }
+        if (!e) {
+            TAILQ_INSERT_TAIL(&g_hal_timer_queue, timer, link);
+        }
+    }
+
+    if (timer == TAILQ_FIRST(&g_hal_timer_queue)) {
+        cmac_timer_write_eq_hal_timer(expiry);
+    }
+
+    OS_EXIT_CRITICAL(sr);
+
+    return 0;
+}
+
+int
+hal_timer_stop(struct hal_timer *timer)
+{
+    os_sr_t sr;
+    bool reset_timer;
+
+    assert(timer);
+
+    if (timer->link.tqe_prev == NULL) {
+        return 0;
+    }
+
+    OS_ENTER_CRITICAL(sr);
+
+    reset_timer = (timer == TAILQ_FIRST(&g_hal_timer_queue));
+
+    TAILQ_REMOVE(&g_hal_timer_queue, timer, link);
+    timer->link.tqe_prev = NULL;
+
+    if (reset_timer) {
+        timer = TAILQ_FIRST(&g_hal_timer_queue);
+        if (timer != NULL) {
+            cmac_timer_write_eq_hal_timer(hal_timer_expiry_get(timer));
+        } else {
+            cmac_timer_disable_eq_hal_timer();
+        }
+    }
+
+    OS_EXIT_CRITICAL(sr);
+
+    return 0;
+}
+
+uint32_t
+hal_timer_read(int timer_num)
+{
+    assert(timer_num == 0);
+
+    return cmac_timer_convert_llt2hal(cmac_timer_read64());
+}
diff --git a/hw/mcu/dialog/cmac/src/hal_watchdog.c b/hw/mcu/dialog/cmac/src/hal_watchdog.c
new file mode 100644
index 0000000..cd3a7d3
--- /dev/null
+++ b/hw/mcu/dialog/cmac/src/hal_watchdog.c
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include <assert.h>
+#include "syscfg/syscfg.h"
+#include "hal/hal_watchdog.h"
+#include "CMAC.h"
+
+int
+hal_watchdog_init(uint32_t expire_msecs)
+{
+    return 0;
+}
+
+void
+hal_watchdog_enable(void)
+{
+    hal_watchdog_tickle();
+}
+
+void
+hal_watchdog_tickle(void)
+{
+    uint32_t cnt;
+
+    cnt = MYNEWT_VAL(WATCHDOG_INTERVAL) * 100 / 1024;
+    assert(cnt <= CMAC_CM_WDOG_REG_CM_WDOG_CNT_Msk);
+
+    CMAC->CM_WDOG_REG = CMAC_CM_WDOG_REG_SYS2CMAC_WDOG_FREEZE_DIS_Msk |
+                        CMAC_CM_WDOG_REG_CM_WDOG_WRITE_VALID_Msk | cnt;
+}
diff --git a/hw/mcu/dialog/cmac/src/system_cmac.c b/hw/mcu/dialog/cmac/src/system_cmac.c
new file mode 100644
index 0000000..e741368
--- /dev/null
+++ b/hw/mcu/dialog/cmac/src/system_cmac.c
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include <assert.h>
+#include "syscfg/syscfg.h"
+#include "mcu/cmac_hal.h"
+#include "mcu/cmac_pdc.h"
+#include "mcu/cmac_timer.h"
+#include "mcu/cmsis_nvic.h"
+#include "mcu/mcu.h"
+#include "hal/hal_system.h"
+#include "cmac_driver/cmac_diag.h"
+#include "CMAC.h"
+
+void
+SystemInit(void)
+{
+#if MYNEWT_VAL(CMAC_DEBUG_DIAG_ENABLE)
+    cmac_diag_setup_cmac();
+#endif
+
+#if MYNEWT_VAL(MCU_DEBUG_SWD_WAIT_FOR_ATTACH)
+    while (!hal_debugger_connected());
+    for (int i = 0; i < 1000000; i++);
+#endif
+
+    CMAC->CM_CTRL_REG &= ~CMAC_CM_CTRL_REG_CM_BS_RESET_N_Msk;
+    CMAC->CM_CTRL_REG |= CMAC_CM_CTRL_REG_CM_BS_RESET_N_Msk;
+
+    CMAC->CM_CTRL_REG = (CMAC->CM_CTRL_REG &
+                         ~CMAC_CM_CTRL_REG_CM_CLK_FREQ_MHZ_D2M1_Msk) |
+                        (15 << CMAC_CM_CTRL_REG_CM_CLK_FREQ_MHZ_D2M1_Pos);
+    CMAC->CM_CTRL2_REG = CMAC_CM_CTRL2_REG_LL_TIMER1_9_0_LIMITED_N_Msk;
+
+    CMAC->CM_CTRL_REG |= CMAC_CM_CTRL_REG_CM_BS_ENABLE_Msk;
+
+    cmac_timer_init();
+}
diff --git a/hw/mcu/dialog/cmac/syscfg.yml b/hw/mcu/dialog/cmac/syscfg.yml
new file mode 100644
index 0000000..9c2ece2
--- /dev/null
+++ b/hw/mcu/dialog/cmac/syscfg.yml
@@ -0,0 +1,81 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+syscfg.defs:
+    MCU_SLP_TIMER:
+        description: Enable SLP_TIMER for CMAC (M0+) core.
+        value: 1
+    MCU_SLP_TIMER_32K_ONLY:
+        description: >
+            Allow only 32768Hz on SLP_TIMER. This allows for
+            more optimized code, but will use SLP_TIMER only
+            if running on XTAL32K.
+        value: 1
+    MCU_DEEP_SLEEP:
+        description: Enable deep sleep for CMAC (M0+) core.
+        value: 1
+        restrictions: MCU_SLP_TIMER
+
+    TIMER_0:
+        description: Enable CMAC timer 0 (LL_TIMER)
+        value: 1
+
+    MCU_DEBUG_SWD_WAIT_FOR_ATTACH:
+        description: >
+            Wait for SWD attach on startup. This is useful for debugging
+            in case something happens during startup. If enabled, CMAC
+            will keep spinning until SWD is attached.
+        value: 0
+
+    MCU_DEBUG_HCI_EVENT_ON_FAULT:
+        description: >
+            Enables writing HCI event to C2S mailbox on fault (e.g. HardFault).
+            This is a vendor event similar to the one generated on assert. The
+            event payload contains few useful registers to help debugging.
+        value: 0
+    MCU_DEBUG_HCI_EVENT_ON_ASSERT:
+        description: >
+            Enables writing HCI event to C2S mailbox on assert. This is
+            a vendor event equivalent to one generated by NimBLE, but it
+            works for any assert anywhere in code. The event payload
+            contains file name and line number of a failed assert.
+        value: 0
+
+    MCU_DEBUG_DSER_HAL_OS_TICK:
+        description: Enable DSER output from hal_os_tick
+        value: 0
+    MCU_DEBUG_DSER_CMAC_SHARED:
+        description: Enable DSER output from cmac_shared
+        value: 0
+    MCU_DEBUG_DSER_CMAC_SLEEP:
+        description: Enable DSER output from cmac_sleep
+        value: 0
+    MCU_DEBUG_DSER_BLE_HCI_CMAC_LL:
+        description: Enable DSER output from ble_hci_cmac_ll
+        value: 0
+    MCU_DEBUG_GPIO_DEEP_SLEEP:
+        description: >
+            Enables deep sleep debugging via GPIO. Selected GPIO will be set
+            to 1 on reset (or in case deep sleep did not happen) and to 0 just
+            before entering deep sleep. Setting to -1 disabled this feature.
+            Only port 0 pins are supported.
+        value: -1
+        range: -1,0..31
+
+syscfg.restrictions:
+    - BLE_CONTROLLER
diff --git a/hw/mcu/dialog/include/CMAC.h b/hw/mcu/dialog/include/CMAC.h
new file mode 100644
index 0000000..3ec585f
--- /dev/null
+++ b/hw/mcu/dialog/include/CMAC.h
@@ -0,0 +1,2000 @@
+/*
+ * Copyright (C) 2019 Dialog Semiconductor. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ * - Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * - Neither the name of Dialog Semiconductor nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * @file     /workspaces/kninos/bbtester/development/software_include/D2763AA/D2763x.h
+ * @brief    CMSIS HeaderFile
+ * @version  1.2
+ * @date     23. May 2019
+ * @note     Generated by SVDConv V3.3.26 on Thursday, 23.05.2019 09:20:28
+ *           from File '/workspaces/kninos/bbtester/development/software_include/D2763AA/datasheet_cmsis_cmac.svd',
+ */
+
+
+
+/** @addtogroup Dialog
+  * @{
+  */
+
+
+/** @addtogroup D2763x
+  * @{
+  */
+
+
+#ifndef D2763X_H
+#define D2763X_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+#ifndef CMSIS_STRIP_HEADER
+
+#include "system_CMAC.h"                      /*!< D2763x System                                                             */
+#include "os/os_arch_cmac.h"
+
+
+/* ========================================  Start of section using anonymous unions  ======================================== */
+#if defined (__CC_ARM)
+  #pragma push
+  #pragma anon_unions
+#elif defined (__ICCARM__)
+  #pragma language=extended
+#elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
+  #pragma clang diagnostic push
+  #pragma clang diagnostic ignored "-Wc11-extensions"
+  #pragma clang diagnostic ignored "-Wreserved-id-macro"
+  #pragma clang diagnostic ignored "-Wgnu-anonymous-struct"
+  #pragma clang diagnostic ignored "-Wnested-anon-types"
+#elif defined (__GNUC__)
+  /* anonymous unions are enabled by default */
+#elif defined (__TMS470__)
+  /* anonymous unions are enabled by default */
+#elif defined (__TASKING__)
+  #pragma warning 586
+#elif defined (__CSMC__)
+  /* anonymous unions are enabled by default */
+#else
+  #warning Not supported compiler type
+#endif
+
+
+/* =========================================================================================================================== */
+/* ================                            Device Specific Peripheral Section                             ================ */
+/* =========================================================================================================================== */
+
+
+#endif /*CMSIS_STRIP_HEADER*/
+
+/** @addtogroup Device_Peripheral_peripherals
+  * @{
+  */
+
+
+
+/* =========================================================================================================================== */
+/* ================                                           CMAC                                            ================ */
+/* =========================================================================================================================== */
+
+
+/**
+  * @brief CMAC registers (CMAC)
+  */
+
+typedef struct {                                /*!< (@ 0x40000000) CMAC Structure                                             */
+  __IO uint32_t  CM_CTRL_REG;                 /*!< (@ 0x00000000) CM_CTRL_REG                                                */
+  __IO uint32_t  CM_STAT_REG;                 /*!< (@ 0x00000004) CM_STAT_REG                                                */
+  __IO uint32_t  CM_CLK_COMP_REG;             /*!< (@ 0x00000008) CM_CLK_COMP_REG                                            */
+  __I  uint32_t  RESERVED;
+  __IO uint32_t  CM_EXC_STAT_REG;             /*!< (@ 0x00000010) CM_EXC_STAT_REG                                            */
+  __IO uint32_t  CM_EXC_DIS_REG;              /*!< (@ 0x00000014) CM_EXC_DIS_REG                                             */
+  __IO uint32_t  CM_EV_SET_REG;               /*!< (@ 0x00000018) CM_EV_SET_REG                                              */
+  __IO uint32_t  CM_EV_LATCHED_REG;           /*!< (@ 0x0000001C) CM_EV_LATCHED_REG                                          */
+  __IO uint32_t  CM_EV_LINKUP_REG;            /*!< (@ 0x00000020) CM_EV_LINKUP_REG                                           */
+  __I  uint32_t  RESERVED1[23];
+  __IO uint32_t  CM_PHY_CTRL_REG;             /*!< (@ 0x00000080) CM_PHY_CTRL_REG                                            */
+  __IO uint32_t  CM_PHY_CTRL2_REG;            /*!< (@ 0x00000084) CM_PHY_CTRL2_REG                                           */
+  __I  uint32_t  RESERVED2[30];
+  __IO uint32_t  CM_CTRL2_REG;                /*!< (@ 0x00000100) CM_CTRL2_REG                                               */
+  __I  uint32_t  RESERVED3[3];
+  __IO uint32_t  CM_BS_WINDOW_REG;            /*!< (@ 0x00000110) CM_BS_WINDOW_REG                                           */
+  __IO uint32_t  CM_BS_WINDOW_CNT_REG;        /*!< (@ 0x00000114) CM_BS_WINDOW_CNT_REG                                       */
+  __I  uint32_t  RESERVED4[2];
+  __IO uint32_t  CM_BS_SMPL_ST_REG;           /*!< (@ 0x00000120) CM_BS_SMPL_ST_REG                                          */
+  __IO uint32_t  CM_BS_SMPL_FST_REG;          /*!< (@ 0x00000124) CM_BS_SMPL_FST_REG                                         */
+  __IO uint32_t  CM_BS_SMPL_D_REG;            /*!< (@ 0x00000128) CM_BS_SMPL_D_REG                                           */
+  __I  uint32_t  RESERVED5[53];
+  __IO uint32_t  CM_DMA_STAT_REG;             /*!< (@ 0x00000200) CM_DMA_STAT_REG                                            */
+  __IO uint32_t  CM_TS1_REG;                  /*!< (@ 0x00000204) CM_TS1_REG                                                 */
+  __I  uint32_t  RESERVED6[2];
+  __IO uint32_t  CM_CRC_REG;                  /*!< (@ 0x00000210) CM_CRC_REG                                                 */
+  __I  uint32_t  RESERVED7[3];
+  __IO uint32_t  CM_WHITENING_REG;            /*!< (@ 0x00000220) CM_WHITENING_REG                                           */
+  __I  uint32_t  RESERVED8[3];
+  __IO uint32_t  CM_AOAD_REG;                 /*!< (@ 0x00000230) CM_AOAD_REG                                                */
+  __I  uint32_t  RESERVED9[51];
+  __IO uint32_t  CM_LL_INT_MSK_SET_REG;       /*!< (@ 0x00000300) CM_LL_INT_MSK_SET_REG                                      */
+  __IO uint32_t  CM_LL_INT_MSK_CLR_REG;       /*!< (@ 0x00000304) CM_LL_INT_MSK_CLR_REG                                      */
+  __IO uint32_t  CM_LL_INT_STAT_REG;          /*!< (@ 0x00000308) CM_LL_INT_STAT_REG                                         */
+  __IO uint32_t  CM_LL_INT_SEL_REG;           /*!< (@ 0x0000030C) CM_LL_INT_SEL_REG                                          */
+  __I  uint32_t  RESERVED10[8];
+  __IO uint32_t  CM_LL_TIMER1_36_10_REG;      /*!< (@ 0x00000330) CM_LL_TIMER1_36_10_REG                                     */
+  __IO uint32_t  CM_LL_TIMER1_9_0_REG;        /*!< (@ 0x00000334) CM_LL_TIMER1_9_0_REG                                       */
+  __IO uint32_t  CM_LL_TIMER1_9_0_EQ_X_REG;   /*!< (@ 0x00000338) CM_LL_TIMER1_9_0_EQ_X_REG                                  */
+  __IO uint32_t  CM_LL_TIMER1_9_0_EQ_Y_REG;   /*!< (@ 0x0000033C) CM_LL_TIMER1_9_0_EQ_Y_REG                                  */
+  __I  uint32_t  RESERVED11[2];
+  __IO uint32_t  CM_LL_TIMER1_36_10_EQ_X_REG; /*!< (@ 0x00000348) CM_LL_TIMER1_36_10_EQ_X_REG                                */
+  __IO uint32_t  CM_LL_TIMER1_36_10_EQ_Y_REG; /*!< (@ 0x0000034C) CM_LL_TIMER1_36_10_EQ_Y_REG                                */
+  __IO uint32_t  CM_LL_TIMER1_36_10_EQ_Z_REG; /*!< (@ 0x00000350) CM_LL_TIMER1_36_10_EQ_Z_REG                                */
+  __IO uint32_t  CM_LL_TIMER1_EQ_X_HI_REG;    /*!< (@ 0x00000354) CM_LL_TIMER1_EQ_X_HI_REG                                   */
+  __IO uint32_t  CM_LL_TIMER1_EQ_X_LO_REG;    /*!< (@ 0x00000358) CM_LL_TIMER1_EQ_X_LO_REG                                   */
+  __IO uint32_t  CM_LL_TIMER1_EQ_Y_HI_REG;    /*!< (@ 0x0000035C) CM_LL_TIMER1_EQ_Y_HI_REG                                   */
+  __IO uint32_t  CM_LL_TIMER1_EQ_Y_LO_REG;    /*!< (@ 0x00000360) CM_LL_TIMER1_EQ_Y_LO_REG                                   */
+  __IO uint32_t  CM_LL_TIMER1_EQ_Y_CTRL_REG;  /*!< (@ 0x00000364) CM_LL_TIMER1_EQ_Y_CTRL_REG                                 */
+  __I  uint32_t  RESERVED12[294];
+  __IO uint32_t  CM_DIAG_PORT0_REG;           /*!< (@ 0x00000800) CM_DIAG_PORT0_REG                                          */
+  __IO uint32_t  CM_DIAG_PORT1_REG;           /*!< (@ 0x00000804) CM_DIAG_PORT1_REG                                          */
+  __IO uint32_t  CM_DIAG_PORT2_REG;           /*!< (@ 0x00000808) CM_DIAG_PORT2_REG                                          */
+  __IO uint32_t  CM_DIAG_PORT3_REG;           /*!< (@ 0x0000080C) CM_DIAG_PORT3_REG                                          */
+  __IO uint32_t  CM_DIAG_PORT4_REG;           /*!< (@ 0x00000810) CM_DIAG_PORT4_REG                                          */
+  __IO uint32_t  CM_DIAG_PORT5_REG;           /*!< (@ 0x00000814) CM_DIAG_PORT5_REG                                          */
+  __IO uint32_t  CM_DIAG_PORT6_REG;           /*!< (@ 0x00000818) CM_DIAG_PORT6_REG                                          */
+  __IO uint32_t  CM_DIAG_PORT7_REG;           /*!< (@ 0x0000081C) CM_DIAG_PORT7_REG                                          */
+  __IO uint32_t  CM_DIAG_PORT8_REG;           /*!< (@ 0x00000820) CM_DIAG_PORT8_REG                                          */
+  __IO uint32_t  CM_DIAG_PORT9_REG;           /*!< (@ 0x00000824) CM_DIAG_PORT9_REG                                          */
+  __IO uint32_t  CM_DIAG_PORT10_REG;          /*!< (@ 0x00000828) CM_DIAG_PORT10_REG                                         */
+  __IO uint32_t  CM_DIAG_PORT11_REG;          /*!< (@ 0x0000082C) CM_DIAG_PORT11_REG                                         */
+  __IO uint32_t  CM_DIAG_PORT12_REG;          /*!< (@ 0x00000830) CM_DIAG_PORT12_REG                                         */
+  __IO uint32_t  CM_DIAG_PORT13_REG;          /*!< (@ 0x00000834) CM_DIAG_PORT13_REG                                         */
+  __IO uint32_t  CM_DIAG_PORT14_REG;          /*!< (@ 0x00000838) CM_DIAG_PORT14_REG                                         */
+  __IO uint32_t  CM_DIAG_PORT15_REG;          /*!< (@ 0x0000083C) CM_DIAG_PORT15_REG                                         */
+  __I  uint32_t  RESERVED13[16];
+  __IO uint32_t  CM_DIAG_WORD0_REG;           /*!< (@ 0x00000880) CM_DIAG_WORD0_REG                                          */
+  __IO uint32_t  CM_DIAG_WORD1_REG;           /*!< (@ 0x00000884) CM_DIAG_WORD1_REG                                          */
+  __IO uint32_t  CM_DIAG_WORD2_REG;           /*!< (@ 0x00000888) CM_DIAG_WORD2_REG                                          */
+  __IO uint32_t  CM_DIAG_WORD3_REG;           /*!< (@ 0x0000088C) CM_DIAG_WORD3_REG                                          */
+  __IO uint32_t  CM_DIAG_WORD4_REG;           /*!< (@ 0x00000890) CM_DIAG_WORD4_REG                                          */
+  __IO uint32_t  CM_DIAG_WORD5_REG;           /*!< (@ 0x00000894) CM_DIAG_WORD5_REG                                          */
+  __IO uint32_t  CM_DIAG_WORD6_REG;           /*!< (@ 0x00000898) CM_DIAG_WORD6_REG                                          */
+  __IO uint32_t  CM_DIAG_WORD7_REG;           /*!< (@ 0x0000089C) CM_DIAG_WORD7_REG                                          */
+  __IO uint32_t  CM_DIAG_WORD8_REG;           /*!< (@ 0x000008A0) CM_DIAG_WORD8_REG                                          */
+  __IO uint32_t  CM_DIAG_WORD9_REG;           /*!< (@ 0x000008A4) CM_DIAG_WORD9_REG                                          */
+  __IO uint32_t  CM_DIAG_WORD10_REG;          /*!< (@ 0x000008A8) CM_DIAG_WORD10_REG                                         */
+  __I  uint32_t  RESERVED14[17];
+  __IO uint32_t  CM_DIAG_DSER_REG;            /*!< (@ 0x000008F0) CM_DIAG_DSER_REG                                           */
+  __I  uint32_t  RESERVED15[3];
+  __IO uint32_t  CM_ERROR_REG;                /*!< (@ 0x00000900) CM_ERROR_REG                                               */
+  __IO uint32_t  CM_ERROR_DIS_REG;            /*!< (@ 0x00000904) CM_ERROR_DIS_REG                                           */
+  __I  uint32_t  RESERVED16[446];
+  __IO uint32_t  CM_FRAME_1_REG;              /*!< (@ 0x00001000) CM_FRAME_1_REG                                             */
+  __IO uint32_t  CM_FRAME_2_REG;              /*!< (@ 0x00001004) CM_FRAME_2_REG                                             */
+  __I  uint32_t  RESERVED17[2];
+  __IO uint32_t  CM_FIELD_PUSH_DATA_REG;      /*!< (@ 0x00001010) CM_FIELD_PUSH_DATA_REG                                     */
+  __IO uint32_t  CM_FIELD_PUSH_CTRL_REG;      /*!< (@ 0x00001014) CM_FIELD_PUSH_CTRL_REG                                     */
+  __I  uint32_t  RESERVED18[2];
+  __IO uint32_t  CM_FIELD_1_DATA_REG;         /*!< (@ 0x00001020) CM_FIELD_1_DATA_REG                                        */
+  __IO uint32_t  CM_FIELD_1_CTRL_REG;         /*!< (@ 0x00001024) CM_FIELD_1_CTRL_REG                                        */
+  __IO uint32_t  CM_FIELD_2_DATA_REG;         /*!< (@ 0x00001028) CM_FIELD_2_DATA_REG                                        */
+  __IO uint32_t  CM_FIELD_2_CTRL_REG;         /*!< (@ 0x0000102C) CM_FIELD_2_CTRL_REG                                        */
+  __IO uint32_t  CM_FIELD_3_DATA_REG;         /*!< (@ 0x00001030) CM_FIELD_3_DATA_REG                                        */
+  __IO uint32_t  CM_FIELD_3_CTRL_REG;         /*!< (@ 0x00001034) CM_FIELD_3_CTRL_REG                                        */
+  __IO uint32_t  CM_FIELD_4_DATA_REG;         /*!< (@ 0x00001038) CM_FIELD_4_DATA_REG                                        */
+  __IO uint32_t  CM_FIELD_4_CTRL_REG;         /*!< (@ 0x0000103C) CM_FIELD_4_CTRL_REG                                        */
+  __I  uint32_t  RESERVED19[48];
+  __IO uint32_t  CM_CRYPTO_CTRL_REG;          /*!< (@ 0x00001100) CM_CRYPTO_CTRL_REG                                         */
+  __IO uint32_t  CM_CRYPTO_STAT_REG;          /*!< (@ 0x00001104) CM_CRYPTO_STAT_REG                                         */
+  __IO uint32_t  CM_CRYPTO_KEY_31_0_REG;      /*!< (@ 0x00001108) CM_CRYPTO_KEY_31_0_REG                                     */
+  __IO uint32_t  CM_CRYPTO_KEY_63_32_REG;     /*!< (@ 0x0000110C) CM_CRYPTO_KEY_63_32_REG                                    */
+  __IO uint32_t  CM_CRYPTO_KEY_95_64_REG;     /*!< (@ 0x00001110) CM_CRYPTO_KEY_95_64_REG                                    */
+  __IO uint32_t  CM_CRYPTO_KEY_127_96_REG;    /*!< (@ 0x00001114) CM_CRYPTO_KEY_127_96_REG                                   */
+  __IO uint32_t  CM_CRYPTO_IN_ADR0_REG;       /*!< (@ 0x00001118) CM_CRYPTO_IN_ADR0_REG                                      */
+  __IO uint32_t  CM_CRYPTO_IN_ADR1_REG;       /*!< (@ 0x0000111C) CM_CRYPTO_IN_ADR1_REG                                      */
+  __IO uint32_t  CM_CRYPTO_IN_ADR2_REG;       /*!< (@ 0x00001120) CM_CRYPTO_IN_ADR2_REG                                      */
+  __IO uint32_t  CM_CRYPTO_IN_ADR3_REG;       /*!< (@ 0x00001124) CM_CRYPTO_IN_ADR3_REG                                      */
+  __IO uint32_t  CM_CRYPTO_OUT_ADR_REG;       /*!< (@ 0x00001128) CM_CRYPTO_OUT_ADR_REG                                      */
+  __I  uint32_t  RESERVED20[949];
+  __IO uint32_t  CM_CTRL_SYS_REG;             /*!< (@ 0x40002000) CMAC and System Control Register                           */
+  __IO uint32_t  CM_WDOG_REG;                 /*!< (@ 0x40002004) CMAC Watch Dog Control Register                            */
+  __I  uint32_t  RESERVED21[62];
+  __IO uint32_t  CM_DIAG_IRQ1_WORD_REG;       /*!< (@ 0x40002100) Diagnostic IRQ on Word1 - Word1 Register                   */
+  __IO uint32_t  CM_DIAG_IRQ1_EDGE_REG;       /*!< (@ 0x40002104) Diagnostic IRQ on Word1 - Edge Register                    */
+  __IO uint32_t  CM_DIAG_IRQ1_STAT_REG;       /*!< (@ 0x40002108) Diagnostic IRQ on Word1 - Status Register                  */
+  __IO uint32_t  CM_DIAG_IRQ1_MASK_REG;       /*!< (@ 0x4000210C) Diagnostic IRQ on Word1 - Mask Register                    */
+} CMAC_Type;                                    /*!< Size = 4396 (0x112c)                                                    */
+
+
+typedef struct {                                    /*!< (@ 0x50010400) CMAC_TIMER_SLP Structure                               */
+  __IO uint32_t  CM_SLP_CTRL_REG;                   /*!< (@ 0x50010400) CMAC Sleep Control 1 (allowed to RMW)                  */
+  __IO uint32_t  CM_SLP_CTRL2_REG;                  /*!< (@ 0x50010404) CMAC Sleep Control 2 (no RMW)                          */
+  __IO uint32_t  CM_SLP_TIMER_REG;                  /*!< (@ 0x50010408) CMAC Sleep Timer                                       */
+} CMAC_TIMER_SLP_Type;
+
+
+typedef struct {                                /*!< (@ 0x50000200) PDC Structure                                              */
+  __IOM uint32_t  PDC_CTRL0_REG;                /*!< (@ 0x00000000) PDC control register                                       */
+  __IOM uint32_t  PDC_CTRL1_REG;                /*!< (@ 0x00000004) PDC control register                                       */
+  __IOM uint32_t  PDC_CTRL2_REG;                /*!< (@ 0x00000008) PDC control register                                       */
+  __IOM uint32_t  PDC_CTRL3_REG;                /*!< (@ 0x0000000C) PDC control register                                       */
+  __IOM uint32_t  PDC_CTRL4_REG;                /*!< (@ 0x00000010) PDC control register                                       */
+  __IOM uint32_t  PDC_CTRL5_REG;                /*!< (@ 0x00000014) PDC control register                                       */
+  __IOM uint32_t  PDC_CTRL6_REG;                /*!< (@ 0x00000018) PDC control register                                       */
+  __IOM uint32_t  PDC_CTRL7_REG;                /*!< (@ 0x0000001C) PDC control register                                       */
+  __IOM uint32_t  PDC_CTRL8_REG;                /*!< (@ 0x00000020) PDC control register                                       */
+  __IOM uint32_t  PDC_CTRL9_REG;                /*!< (@ 0x00000024) PDC control register                                       */
+  __IOM uint32_t  PDC_CTRL10_REG;               /*!< (@ 0x00000028) PDC control register                                       */
+  __IOM uint32_t  PDC_CTRL11_REG;               /*!< (@ 0x0000002C) PDC control register                                       */
+  __IOM uint32_t  PDC_CTRL12_REG;               /*!< (@ 0x00000030) PDC control register                                       */
+  __IOM uint32_t  PDC_CTRL13_REG;               /*!< (@ 0x00000034) PDC control register                                       */
+  __IOM uint32_t  PDC_CTRL14_REG;               /*!< (@ 0x00000038) PDC control register                                       */
+  __IOM uint32_t  PDC_CTRL15_REG;               /*!< (@ 0x0000003C) PDC control register                                       */
+  __IM  uint32_t  RESERVED[16];
+  __IOM uint32_t  PDC_ACKNOWLEDGE_REG;          /*!< (@ 0x00000080) Clear a pending PDC bit                                    */
+  __IOM uint32_t  PDC_PENDING_REG;              /*!< (@ 0x00000084) Shows any pending wakup event                              */
+  __IOM uint32_t  PDC_PENDING_SNC_REG;          /*!< (@ 0x00000088) Shows any pending IRQ to SNC                               */
+  __IOM uint32_t  PDC_PENDING_CM33_REG;         /*!< (@ 0x0000008C) Shows any pending IRQ to CM33                              */
+  __IOM uint32_t  PDC_PENDING_CMAC_REG;         /*!< (@ 0x00000090) Shows any pending IRQ to CM33                              */
+  __IOM uint32_t  PDC_SET_PENDING_REG;          /*!< (@ 0x00000094) Set a pending PDC bit                                      */
+} PDC_Type;                                     /*!< Size = 152 (0x98)                                                         */
+
+
+/** @} */ /* End of group Device_Peripheral_peripherals */
+
+
+/* =========================================================================================================================== */
+/* ================                          Device Specific Peripheral Address Map                           ================ */
+/* =========================================================================================================================== */
+
+
+/** @addtogroup Device_Peripheral_peripheralAddr
+  * @{
+  */
+
+#define CMAC_BASE                   0x40000000UL
+#define CMAC_TIMER_SLP_BASE         0x50010400UL
+#define PDC_BASE                    0x50000200UL
+
+/** @} */ /* End of group Device_Peripheral_peripheralAddr */
+
+
+/* =========================================================================================================================== */
+/* ================                                  Peripheral declaration                                   ================ */
+/* =========================================================================================================================== */
+
+
+/** @addtogroup Device_Peripheral_declaration
+  * @{
+  */
+
+#define CMAC                        ((CMAC_Type*)              CMAC_BASE)
+#define CMAC_TIMER_SLP              ((CMAC_TIMER_SLP_Type *)   CMAC_TIMER_SLP_BASE)
+#define PDC                         ((PDC_Type*)               PDC_BASE)
+
+/** @} */ /* End of group Device_Peripheral_declaration */
+
+
+/* =========================================  End of section using anonymous unions  ========================================= */
+#if defined (__CC_ARM)
+  #pragma pop
+#elif defined (__ICCARM__)
+  /* leave anonymous unions enabled */
+#elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
+  #pragma clang diagnostic pop
+#elif defined (__GNUC__)
+  /* anonymous unions are enabled by default */
+#elif defined (__TMS470__)
+  /* anonymous unions are enabled by default */
+#elif defined (__TASKING__)
+  #pragma warning restore
+#elif defined (__CSMC__)
+  /* anonymous unions are enabled by default */
+#endif
+
+
+/* =========================================================================================================================== */
+/* ================                                Pos/Mask Peripheral Section                                ================ */
+/* =========================================================================================================================== */
+
+
+/** @addtogroup PosMask_peripherals
+  * @{
+  */
+
+
+
+/* =========================================================================================================================== */
+/* ================                                           CMAC                                            ================ */
+/* =========================================================================================================================== */
+
+/* ======================================================  CM_AOAD_REG  ====================================================== */
+#define CMAC_CM_AOAD_REG_AOAD_PORT_Pos    (24UL)                    /*!< AOAD_PORT (Bit 24)                                    */
+#define CMAC_CM_AOAD_REG_AOAD_PORT_Msk    (0xff000000UL)            /*!< AOAD_PORT (Bitfield-Mask: 0xff)                       */
+#define CMAC_CM_AOAD_REG_AOAD_TIME_SHIFT_M1_Pos (20UL)              /*!< AOAD_TIME_SHIFT_M1 (Bit 20)                           */
+#define CMAC_CM_AOAD_REG_AOAD_TIME_SHIFT_M1_Msk (0x700000UL)        /*!< AOAD_TIME_SHIFT_M1 (Bitfield-Mask: 0x07)              */
+#define CMAC_CM_AOAD_REG_AOAD_BIN_MODE_Pos (17UL)                   /*!< AOAD_BIN_MODE (Bit 17)                                */
+#define CMAC_CM_AOAD_REG_AOAD_BIN_MODE_Msk (0x20000UL)              /*!< AOAD_BIN_MODE (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_AOAD_REG_AOAD_USE_ALL_OFF_Pos (16UL)                /*!< AOAD_USE_ALL_OFF (Bit 16)                             */
+#define CMAC_CM_AOAD_REG_AOAD_USE_ALL_OFF_Msk (0x10000UL)           /*!< AOAD_USE_ALL_OFF (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_AOAD_REG_AOAD_INTERLEAVE_ANT0_Pos (15UL)            /*!< AOAD_INTERLEAVE_ANT0 (Bit 15)                         */
+#define CMAC_CM_AOAD_REG_AOAD_INTERLEAVE_ANT0_Msk (0x8000UL)        /*!< AOAD_INTERLEAVE_ANT0 (Bitfield-Mask: 0x01)            */
+#define CMAC_CM_AOAD_REG_AOAD_ONEHOT_Pos  (14UL)                    /*!< AOAD_ONEHOT (Bit 14)                                  */
+#define CMAC_CM_AOAD_REG_AOAD_ONEHOT_Msk  (0x4000UL)                /*!< AOAD_ONEHOT (Bitfield-Mask: 0x01)                     */
+#define CMAC_CM_AOAD_REG_AOAD_PATTERN_Pos (13UL)                    /*!< AOAD_PATTERN (Bit 13)                                 */
+#define CMAC_CM_AOAD_REG_AOAD_PATTERN_Msk (0x2000UL)                /*!< AOAD_PATTERN (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_AOAD_REG_AOAD_SYMBOLS_PER_SWING_Pos (11UL)          /*!< AOAD_SYMBOLS_PER_SWING (Bit 11)                       */
+#define CMAC_CM_AOAD_REG_AOAD_SYMBOLS_PER_SWING_Msk (0x1800UL)      /*!< AOAD_SYMBOLS_PER_SWING (Bitfield-Mask: 0x03)          */
+#define CMAC_CM_AOAD_REG_AOAD_ANTENNAS_M1_Pos (8UL)                 /*!< AOAD_ANTENNAS_M1 (Bit 8)                              */
+#define CMAC_CM_AOAD_REG_AOAD_ANTENNAS_M1_Msk (0x700UL)             /*!< AOAD_ANTENNAS_M1 (Bitfield-Mask: 0x07)                */
+#define CMAC_CM_AOAD_REG_AOAD_STATE_WR_EN_Pos (5UL)                 /*!< AOAD_STATE_WR_EN (Bit 5)                              */
+#define CMAC_CM_AOAD_REG_AOAD_STATE_WR_EN_Msk (0x20UL)              /*!< AOAD_STATE_WR_EN (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_AOAD_REG_AOAD_STATE_Pos   (0UL)                     /*!< AOAD_STATE (Bit 0)                                    */
+#define CMAC_CM_AOAD_REG_AOAD_STATE_Msk   (0x1fUL)                  /*!< AOAD_STATE (Bitfield-Mask: 0x1f)                      */
+/* ===================================================  CM_BS_SMPL_D_REG  ==================================================== */
+#define CMAC_CM_BS_SMPL_D_REG_BS_WINDOW_LATCHED_Pos (0UL)           /*!< BS_WINDOW_LATCHED (Bit 0)                             */
+#define CMAC_CM_BS_SMPL_D_REG_BS_WINDOW_LATCHED_Msk (0xffffffffUL)  /*!< BS_WINDOW_LATCHED (Bitfield-Mask: 0xffffffff)         */
+/* ==================================================  CM_BS_SMPL_FST_REG  =================================================== */
+#define CMAC_CM_BS_SMPL_FST_REG_BS_SMPL_VALID_Pos (31UL)            /*!< BS_SMPL_VALID (Bit 31)                                */
+#define CMAC_CM_BS_SMPL_FST_REG_BS_SMPL_VALID_Msk (0x80000000UL)    /*!< BS_SMPL_VALID (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_BS_SMPL_FST_REG_BS_SMPL_NO_ERROR_Pos (30UL)         /*!< BS_SMPL_NO_ERROR (Bit 30)                             */
+#define CMAC_CM_BS_SMPL_FST_REG_BS_SMPL_NO_ERROR_Msk (0x40000000UL) /*!< BS_SMPL_NO_ERROR (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_BS_SMPL_FST_REG_BS_WINDOW_CNT_LATCHED_Pos (16UL)    /*!< BS_WINDOW_CNT_LATCHED (Bit 16)                        */
+#define CMAC_CM_BS_SMPL_FST_REG_BS_WINDOW_CNT_LATCHED_Msk (0x1f0000UL) /*!< BS_WINDOW_CNT_LATCHED (Bitfield-Mask: 0x1f)        */
+#define CMAC_CM_BS_SMPL_FST_REG_FIELD_CNT_LATCHED_Pos (0UL)         /*!< FIELD_CNT_LATCHED (Bit 0)                             */
+#define CMAC_CM_BS_SMPL_FST_REG_FIELD_CNT_LATCHED_Msk (0xfUL)       /*!< FIELD_CNT_LATCHED (Bitfield-Mask: 0x0f)               */
+/* ===================================================  CM_BS_SMPL_ST_REG  =================================================== */
+#define CMAC_CM_BS_SMPL_ST_REG_BS_SMPL_VALID_Pos (31UL)             /*!< BS_SMPL_VALID (Bit 31)                                */
+#define CMAC_CM_BS_SMPL_ST_REG_BS_SMPL_VALID_Msk (0x80000000UL)     /*!< BS_SMPL_VALID (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_BS_SMPL_ST_REG_BS_SMPL_NO_ERROR_Pos (30UL)          /*!< BS_SMPL_NO_ERROR (Bit 30)                             */
+#define CMAC_CM_BS_SMPL_ST_REG_BS_SMPL_NO_ERROR_Msk (0x40000000UL)  /*!< BS_SMPL_NO_ERROR (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_BS_SMPL_ST_REG_BS_WINDOW_CNT_LATCHED_Pos (16UL)     /*!< BS_WINDOW_CNT_LATCHED (Bit 16)                        */
+#define CMAC_CM_BS_SMPL_ST_REG_BS_WINDOW_CNT_LATCHED_Msk (0x1f0000UL) /*!< BS_WINDOW_CNT_LATCHED (Bitfield-Mask: 0x1f)         */
+#define CMAC_CM_BS_SMPL_ST_REG_FIELD_CNT_LATCHED_Pos (0UL)          /*!< FIELD_CNT_LATCHED (Bit 0)                             */
+#define CMAC_CM_BS_SMPL_ST_REG_FIELD_CNT_LATCHED_Msk (0xfUL)        /*!< FIELD_CNT_LATCHED (Bitfield-Mask: 0x0f)               */
+/* =================================================  CM_BS_WINDOW_CNT_REG  ================================================== */
+#define CMAC_CM_BS_WINDOW_CNT_REG_CM_BS_WINDOW_CNT_Pos (0UL)        /*!< CM_BS_WINDOW_CNT (Bit 0)                              */
+#define CMAC_CM_BS_WINDOW_CNT_REG_CM_BS_WINDOW_CNT_Msk (0x1fUL)     /*!< CM_BS_WINDOW_CNT (Bitfield-Mask: 0x1f)                */
+/* ===================================================  CM_BS_WINDOW_REG  ==================================================== */
+#define CMAC_CM_BS_WINDOW_REG_CM_BS_WINDOW_Pos (0UL)                /*!< CM_BS_WINDOW (Bit 0)                                  */
+#define CMAC_CM_BS_WINDOW_REG_CM_BS_WINDOW_Msk (0xffffffffUL)       /*!< CM_BS_WINDOW (Bitfield-Mask: 0xffffffff)              */
+/* ====================================================  CM_CLK_COMP_REG  ==================================================== */
+#define CMAC_CM_CLK_COMP_REG_CLK1MHZ_COMP_Pos (6UL)                 /*!< CLK1MHZ_COMP (Bit 6)                                  */
+#define CMAC_CM_CLK_COMP_REG_CLK1MHZ_COMP_Msk (0x40UL)              /*!< CLK1MHZ_COMP (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_CLK_COMP_REG_CLK2MHZ_COMP_Pos (0UL)                 /*!< CLK2MHZ_COMP (Bit 0)                                  */
+#define CMAC_CM_CLK_COMP_REG_CLK2MHZ_COMP_Msk (0x3fUL)              /*!< CLK2MHZ_COMP (Bitfield-Mask: 0x3f)                    */
+/* ======================================================  CM_CRC_REG  ======================================================= */
+#define CMAC_CM_CRC_REG_CRC_INIT_VAL_Pos  (0UL)                     /*!< CRC_INIT_VAL (Bit 0)                                  */
+#define CMAC_CM_CRC_REG_CRC_INIT_VAL_Msk  (0xffffffUL)              /*!< CRC_INIT_VAL (Bitfield-Mask: 0xffffff)                */
+/* ==================================================  CM_CRYPTO_CTRL_REG  =================================================== */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_CTR_LEN_Pos (16UL)        /*!< CM_CRYPTO_CTR_LEN (Bit 16)                            */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_CTR_LEN_Msk (0xff0000UL)  /*!< CM_CRYPTO_CTR_LEN (Bitfield-Mask: 0xff)               */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_KEY_ORDER_Pos (10UL)      /*!< CM_CRYPTO_KEY_ORDER (Bit 10)                          */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_KEY_ORDER_Msk (0x400UL)   /*!< CM_CRYPTO_KEY_ORDER (Bitfield-Mask: 0x01)             */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_SW_REQ_PBUF_CLR_Pos (9UL) /*!< CM_CRYPTO_SW_REQ_PBUF_CLR (Bit 9)                     */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_SW_REQ_PBUF_CLR_Msk (0x200UL) /*!< CM_CRYPTO_SW_REQ_PBUF_CLR (Bitfield-Mask: 0x01)   */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_SW_REQ_ABORT_Pos (8UL)    /*!< CM_CRYPTO_SW_REQ_ABORT (Bit 8)                        */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_SW_REQ_ABORT_Msk (0x100UL) /*!< CM_CRYPTO_SW_REQ_ABORT (Bitfield-Mask: 0x01)         */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_ECB_ENC_EN_Pos (7UL)      /*!< CM_CRYPTO_ECB_ENC_EN (Bit 7)                          */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_ECB_ENC_EN_Msk (0x80UL)   /*!< CM_CRYPTO_ECB_ENC_EN (Bitfield-Mask: 0x01)            */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_IN_SEL_Pos (6UL)          /*!< CM_CRYPTO_IN_SEL (Bit 6)                              */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_IN_SEL_Msk (0x40UL)       /*!< CM_CRYPTO_IN_SEL (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_OUT_SEL_Pos (5UL)         /*!< CM_CRYPTO_OUT_SEL (Bit 5)                             */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_OUT_SEL_Msk (0x20UL)      /*!< CM_CRYPTO_OUT_SEL (Bitfield-Mask: 0x01)               */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_UCR_PLD_CP_Pos (4UL)      /*!< CM_CRYPTO_UCR_PLD_CP (Bit 4)                          */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_UCR_PLD_CP_Msk (0x10UL)   /*!< CM_CRYPTO_UCR_PLD_CP (Bitfield-Mask: 0x01)            */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_CTR_MAC_EN_Pos (3UL)      /*!< CM_CRYPTO_CTR_MAC_EN (Bit 3)                          */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_CTR_MAC_EN_Msk (0x8UL)    /*!< CM_CRYPTO_CTR_MAC_EN (Bitfield-Mask: 0x01)            */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_CTR_PLD_EN_Pos (2UL)      /*!< CM_CRYPTO_CTR_PLD_EN (Bit 2)                          */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_CTR_PLD_EN_Msk (0x4UL)    /*!< CM_CRYPTO_CTR_PLD_EN (Bitfield-Mask: 0x01)            */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_AUTH_EN_Pos (1UL)         /*!< CM_CRYPTO_AUTH_EN (Bit 1)                             */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_AUTH_EN_Msk (0x2UL)       /*!< CM_CRYPTO_AUTH_EN (Bitfield-Mask: 0x01)               */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_ENC_DECN_Pos (0UL)        /*!< CM_CRYPTO_ENC_DECN (Bit 0)                            */
+#define CMAC_CM_CRYPTO_CTRL_REG_CM_CRYPTO_ENC_DECN_Msk (0x1UL)      /*!< CM_CRYPTO_ENC_DECN (Bitfield-Mask: 0x01)              */
+/* =================================================  CM_CRYPTO_IN_ADR0_REG  ================================================= */
+#define CMAC_CM_CRYPTO_IN_ADR0_REG_CM_CRYPTO_ADATA_ADR_OFST_Pos (0UL) /*!< CM_CRYPTO_ADATA_ADR_OFST (Bit 0)                    */
+#define CMAC_CM_CRYPTO_IN_ADR0_REG_CM_CRYPTO_ADATA_ADR_OFST_Msk (0x3ffffUL) /*!< CM_CRYPTO_ADATA_ADR_OFST (Bitfield-Mask: 0x3ffff) */
+/* =================================================  CM_CRYPTO_IN_ADR1_REG  ================================================= */
+#define CMAC_CM_CRYPTO_IN_ADR1_REG_CM_CRYPTO_AUTH_ADR_OFST_Pos (0UL) /*!< CM_CRYPTO_AUTH_ADR_OFST (Bit 0)                      */
+#define CMAC_CM_CRYPTO_IN_ADR1_REG_CM_CRYPTO_AUTH_ADR_OFST_Msk (0x3ffffUL) /*!< CM_CRYPTO_AUTH_ADR_OFST (Bitfield-Mask: 0x3ffff) */
+/* =================================================  CM_CRYPTO_IN_ADR2_REG  ================================================= */
+#define CMAC_CM_CRYPTO_IN_ADR2_REG_CM_CRYPTO_PLD_ADR_OFST_Pos (0UL) /*!< CM_CRYPTO_PLD_ADR_OFST (Bit 0)                        */
+#define CMAC_CM_CRYPTO_IN_ADR2_REG_CM_CRYPTO_PLD_ADR_OFST_Msk (0x3ffffUL) /*!< CM_CRYPTO_PLD_ADR_OFST (Bitfield-Mask: 0x3ffff) */
+/* =================================================  CM_CRYPTO_IN_ADR3_REG  ================================================= */
+#define CMAC_CM_CRYPTO_IN_ADR3_REG_CM_CRYPTO_CTRBLK_ADR_OFST_Pos (0UL) /*!< CM_CRYPTO_CTRBLK_ADR_OFST (Bit 0)                  */
+#define CMAC_CM_CRYPTO_IN_ADR3_REG_CM_CRYPTO_CTRBLK_ADR_OFST_Msk (0x3ffffUL) /*!< CM_CRYPTO_CTRBLK_ADR_OFST (Bitfield-Mask: 0x3ffff) */
+/* ===============================================  CM_CRYPTO_KEY_127_96_REG  ================================================ */
+#define CMAC_CM_CRYPTO_KEY_127_96_REG_CM_CRYPTO_KEY_127_96_Pos (0UL) /*!< CM_CRYPTO_KEY_127_96 (Bit 0)                         */
+#define CMAC_CM_CRYPTO_KEY_127_96_REG_CM_CRYPTO_KEY_127_96_Msk (0xffffffffUL) /*!< CM_CRYPTO_KEY_127_96 (Bitfield-Mask: 0xffffffff) */
+/* ================================================  CM_CRYPTO_KEY_31_0_REG  ================================================= */
+#define CMAC_CM_CRYPTO_KEY_31_0_REG_CM_CRYPTO_KEY_31_0_Pos (0UL)    /*!< CM_CRYPTO_KEY_31_0 (Bit 0)                            */
+#define CMAC_CM_CRYPTO_KEY_31_0_REG_CM_CRYPTO_KEY_31_0_Msk (0xffffffffUL) /*!< CM_CRYPTO_KEY_31_0 (Bitfield-Mask: 0xffffffff)  */
+/* ================================================  CM_CRYPTO_KEY_63_32_REG  ================================================ */
+#define CMAC_CM_CRYPTO_KEY_63_32_REG_CM_CRYPTO_KEY_63_32_Pos (0UL)  /*!< CM_CRYPTO_KEY_63_32 (Bit 0)                           */
+#define CMAC_CM_CRYPTO_KEY_63_32_REG_CM_CRYPTO_KEY_63_32_Msk (0xffffffffUL) /*!< CM_CRYPTO_KEY_63_32 (Bitfield-Mask: 0xffffffff) */
+/* ================================================  CM_CRYPTO_KEY_95_64_REG  ================================================ */
+#define CMAC_CM_CRYPTO_KEY_95_64_REG_CM_CRYPTO_KEY_95_64_Pos (0UL)  /*!< CM_CRYPTO_KEY_95_64 (Bit 0)                           */
+#define CMAC_CM_CRYPTO_KEY_95_64_REG_CM_CRYPTO_KEY_95_64_Msk (0xffffffffUL) /*!< CM_CRYPTO_KEY_95_64 (Bitfield-Mask: 0xffffffff) */
+/* =================================================  CM_CRYPTO_OUT_ADR_REG  ================================================= */
+#define CMAC_CM_CRYPTO_OUT_ADR_REG_CM_CRYPTO_OUT_ADR_OFST_Pos (0UL) /*!< CM_CRYPTO_OUT_ADR_OFST (Bit 0)                        */
+#define CMAC_CM_CRYPTO_OUT_ADR_REG_CM_CRYPTO_OUT_ADR_OFST_Msk (0x3ffffUL) /*!< CM_CRYPTO_OUT_ADR_OFST (Bitfield-Mask: 0x3ffff) */
+/* ==================================================  CM_CRYPTO_STAT_REG  =================================================== */
+#define CMAC_CM_CRYPTO_STAT_REG_CM_CRYPTO_OUT_UNDERFLOW_Pos (6UL)   /*!< CM_CRYPTO_OUT_UNDERFLOW (Bit 6)                       */
+#define CMAC_CM_CRYPTO_STAT_REG_CM_CRYPTO_OUT_UNDERFLOW_Msk (0x40UL) /*!< CM_CRYPTO_OUT_UNDERFLOW (Bitfield-Mask: 0x01)        */
+#define CMAC_CM_CRYPTO_STAT_REG_CM_CRYPTO_IN_OVERFLOW_Pos (5UL)     /*!< CM_CRYPTO_IN_OVERFLOW (Bit 5)                         */
+#define CMAC_CM_CRYPTO_STAT_REG_CM_CRYPTO_IN_OVERFLOW_Msk (0x20UL)  /*!< CM_CRYPTO_IN_OVERFLOW (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_CRYPTO_STAT_REG_CM_CRYPTO_PARAM_ERROR_Pos (2UL)     /*!< CM_CRYPTO_PARAM_ERROR (Bit 2)                         */
+#define CMAC_CM_CRYPTO_STAT_REG_CM_CRYPTO_PARAM_ERROR_Msk (0x1cUL)  /*!< CM_CRYPTO_PARAM_ERROR (Bitfield-Mask: 0x07)           */
+#define CMAC_CM_CRYPTO_STAT_REG_CM_CRYPTO_MIC_MISMACH_Pos (1UL)     /*!< CM_CRYPTO_MIC_MISMACH (Bit 1)                         */
+#define CMAC_CM_CRYPTO_STAT_REG_CM_CRYPTO_MIC_MISMACH_Msk (0x2UL)   /*!< CM_CRYPTO_MIC_MISMACH (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_CRYPTO_STAT_REG_CM_CRYPTO_BUSY_Pos (0UL)            /*!< CM_CRYPTO_BUSY (Bit 0)                                */
+#define CMAC_CM_CRYPTO_STAT_REG_CM_CRYPTO_BUSY_Msk (0x1UL)          /*!< CM_CRYPTO_BUSY (Bitfield-Mask: 0x01)                  */
+/* =====================================================  CM_CTRL2_REG  ====================================================== */
+#define CMAC_CM_CTRL2_REG_COEX_CANCELS_RX_Pos (14UL)                /*!< COEX_CANCELS_RX (Bit 14)                              */
+#define CMAC_CM_CTRL2_REG_COEX_CANCELS_RX_Msk (0x4000UL)            /*!< COEX_CANCELS_RX (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_CTRL2_REG_COEX_SMART_ACT_MANUAL_Pos (13UL)          /*!< COEX_SMART_ACT_MANUAL (Bit 13)                        */
+#define CMAC_CM_CTRL2_REG_COEX_SMART_ACT_MANUAL_Msk (0x2000UL)      /*!< COEX_SMART_ACT_MANUAL (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_CTRL2_REG_COEX_SMART_PRI_MANUAL_Pos (12UL)          /*!< COEX_SMART_PRI_MANUAL (Bit 12)                        */
+#define CMAC_CM_CTRL2_REG_COEX_SMART_PRI_MANUAL_Msk (0x1000UL)      /*!< COEX_SMART_PRI_MANUAL (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_CTRL2_REG_COEX_PTI_FORCE_1_Pos (11UL)               /*!< COEX_PTI_FORCE_1 (Bit 11)                             */
+#define CMAC_CM_CTRL2_REG_COEX_PTI_FORCE_1_Msk (0x800UL)            /*!< COEX_PTI_FORCE_1 (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_CTRL2_REG_COEX_PTI_FORCE_0_Pos (10UL)               /*!< COEX_PTI_FORCE_0 (Bit 10)                             */
+#define CMAC_CM_CTRL2_REG_COEX_PTI_FORCE_0_Msk (0x400UL)            /*!< COEX_PTI_FORCE_0 (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_CTRL2_REG_COEX_IMPL_Pos   (9UL)                     /*!< COEX_IMPL (Bit 9)                                     */
+#define CMAC_CM_CTRL2_REG_COEX_IMPL_Msk   (0x200UL)                 /*!< COEX_IMPL (Bitfield-Mask: 0x01)                       */
+#define CMAC_CM_CTRL2_REG_COEX_AUTO_Pos   (8UL)                     /*!< COEX_AUTO (Bit 8)                                     */
+#define CMAC_CM_CTRL2_REG_COEX_AUTO_Msk   (0x100UL)                 /*!< COEX_AUTO (Bitfield-Mask: 0x01)                       */
+#define CMAC_CM_CTRL2_REG_LL_TIMER1_9_0_LIMITED_N_Pos (7UL)         /*!< LL_TIMER1_9_0_LIMITED_N (Bit 7)                       */
+#define CMAC_CM_CTRL2_REG_LL_TIMER1_9_0_LIMITED_N_Msk (0x80UL)      /*!< LL_TIMER1_9_0_LIMITED_N (Bitfield-Mask: 0x01)         */
+#define CMAC_CM_CTRL2_REG_WHITENING_MODE_Pos (5UL)                  /*!< WHITENING_MODE (Bit 5)                                */
+#define CMAC_CM_CTRL2_REG_WHITENING_MODE_Msk (0x60UL)               /*!< WHITENING_MODE (Bitfield-Mask: 0x03)                  */
+#define CMAC_CM_CTRL2_REG_CRC_MODE_Pos    (3UL)                     /*!< CRC_MODE (Bit 3)                                      */
+#define CMAC_CM_CTRL2_REG_CRC_MODE_Msk    (0x18UL)                  /*!< CRC_MODE (Bitfield-Mask: 0x03)                        */
+#define CMAC_CM_CTRL2_REG_RXEV_ON_LPCLK_NEGEDGE_Pos (2UL)           /*!< RXEV_ON_LPCLK_NEGEDGE (Bit 2)                         */
+#define CMAC_CM_CTRL2_REG_RXEV_ON_LPCLK_NEGEDGE_Msk (0x4UL)         /*!< RXEV_ON_LPCLK_NEGEDGE (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_CTRL2_REG_RXEV_ON_LPCLK_POSEDGE_Pos (1UL)           /*!< RXEV_ON_LPCLK_POSEDGE (Bit 1)                         */
+#define CMAC_CM_CTRL2_REG_RXEV_ON_LPCLK_POSEDGE_Msk (0x2UL)         /*!< RXEV_ON_LPCLK_POSEDGE (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_CTRL2_REG_RXEV_ON_1MHZ_Pos (0UL)                    /*!< RXEV_ON_1MHZ (Bit 0)                                  */
+#define CMAC_CM_CTRL2_REG_RXEV_ON_1MHZ_Msk (0x1UL)                  /*!< RXEV_ON_1MHZ (Bitfield-Mask: 0x01)                    */
+/* ======================================================  CM_CTRL_REG  ====================================================== */
+#define CMAC_CM_CTRL_REG_CM_CLK_FREQ_MHZ_D2M1_Pos (24UL)            /*!< CM_CLK_FREQ_MHZ_D2M1 (Bit 24)                         */
+#define CMAC_CM_CTRL_REG_CM_CLK_FREQ_MHZ_D2M1_Msk (0x3f000000UL)    /*!< CM_CLK_FREQ_MHZ_D2M1 (Bitfield-Mask: 0x3f)            */
+#define CMAC_CM_CTRL_REG_CM_SPR_Pos       (5UL)                     /*!< CM_SPR (Bit 5)                                        */
+#define CMAC_CM_CTRL_REG_CM_SPR_Msk       (0x1e0UL)                 /*!< CM_SPR (Bitfield-Mask: 0x0f)                          */
+#define CMAC_CM_CTRL_REG_TIMERS_HALT_ON_HALT_N_Pos (4UL)            /*!< TIMERS_HALT_ON_HALT_N (Bit 4)                         */
+#define CMAC_CM_CTRL_REG_TIMERS_HALT_ON_HALT_N_Msk (0x10UL)         /*!< TIMERS_HALT_ON_HALT_N (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_CTRL_REG_MCPU_STATE_RETAINED_Pos (3UL)              /*!< MCPU_STATE_RETAINED (Bit 3)                           */
+#define CMAC_CM_CTRL_REG_MCPU_STATE_RETAINED_Msk (0x8UL)            /*!< MCPU_STATE_RETAINED (Bitfield-Mask: 0x01)             */
+#define CMAC_CM_CTRL_REG_MCPU_SWD_EN_Pos  (2UL)                     /*!< MCPU_SWD_EN (Bit 2)                                   */
+#define CMAC_CM_CTRL_REG_MCPU_SWD_EN_Msk  (0x4UL)                   /*!< MCPU_SWD_EN (Bitfield-Mask: 0x01)                     */
+#define CMAC_CM_CTRL_REG_CM_BS_ENABLE_Pos (1UL)                     /*!< CM_BS_ENABLE (Bit 1)                                  */
+#define CMAC_CM_CTRL_REG_CM_BS_ENABLE_Msk (0x2UL)                   /*!< CM_BS_ENABLE (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_CTRL_REG_CM_BS_RESET_N_Pos (0UL)                    /*!< CM_BS_RESET_N (Bit 0)                                 */
+#define CMAC_CM_CTRL_REG_CM_BS_RESET_N_Msk (0x1UL)                  /*!< CM_BS_RESET_N (Bitfield-Mask: 0x01)                   */
+/* ===================================================  CM_DIAG_DSER_REG  ==================================================== */
+#define CMAC_CM_DIAG_DSER_REG_DIAG_DSER_Pos (0UL)                   /*!< DIAG_DSER (Bit 0)                                     */
+#define CMAC_CM_DIAG_DSER_REG_DIAG_DSER_Msk (0xffUL)                /*!< DIAG_DSER (Bitfield-Mask: 0xff)                       */
+/* ===================================================  CM_DIAG_PORT0_REG  =================================================== */
+#define CMAC_CM_DIAG_PORT0_REG_DIAG_INV_Pos (16UL)                  /*!< DIAG_INV (Bit 16)                                     */
+#define CMAC_CM_DIAG_PORT0_REG_DIAG_INV_Msk (0x10000UL)             /*!< DIAG_INV (Bitfield-Mask: 0x01)                        */
+#define CMAC_CM_DIAG_PORT0_REG_DIAG_BIT_Pos (8UL)                   /*!< DIAG_BIT (Bit 8)                                      */
+#define CMAC_CM_DIAG_PORT0_REG_DIAG_BIT_Msk (0x1f00UL)              /*!< DIAG_BIT (Bitfield-Mask: 0x1f)                        */
+#define CMAC_CM_DIAG_PORT0_REG_DIAG_WORD_Pos (0UL)                  /*!< DIAG_WORD (Bit 0)                                     */
+#define CMAC_CM_DIAG_PORT0_REG_DIAG_WORD_Msk (0xfUL)                /*!< DIAG_WORD (Bitfield-Mask: 0x0f)                       */
+/* ==================================================  CM_DIAG_PORT10_REG  =================================================== */
+#define CMAC_CM_DIAG_PORT10_REG_DIAG_INV_Pos (16UL)                 /*!< DIAG_INV (Bit 16)                                     */
+#define CMAC_CM_DIAG_PORT10_REG_DIAG_INV_Msk (0x10000UL)            /*!< DIAG_INV (Bitfield-Mask: 0x01)                        */
+#define CMAC_CM_DIAG_PORT10_REG_DIAG_BIT_Pos (8UL)                  /*!< DIAG_BIT (Bit 8)                                      */
+#define CMAC_CM_DIAG_PORT10_REG_DIAG_BIT_Msk (0x1f00UL)             /*!< DIAG_BIT (Bitfield-Mask: 0x1f)                        */
+#define CMAC_CM_DIAG_PORT10_REG_DIAG_WORD_Pos (0UL)                 /*!< DIAG_WORD (Bit 0)                                     */
+#define CMAC_CM_DIAG_PORT10_REG_DIAG_WORD_Msk (0xfUL)               /*!< DIAG_WORD (Bitfield-Mask: 0x0f)                       */
+/* ==================================================  CM_DIAG_PORT11_REG  =================================================== */
+#define CMAC_CM_DIAG_PORT11_REG_DIAG_INV_Pos (16UL)                 /*!< DIAG_INV (Bit 16)                                     */
+#define CMAC_CM_DIAG_PORT11_REG_DIAG_INV_Msk (0x10000UL)            /*!< DIAG_INV (Bitfield-Mask: 0x01)                        */
+#define CMAC_CM_DIAG_PORT11_REG_DIAG_BIT_Pos (8UL)                  /*!< DIAG_BIT (Bit 8)                                      */
+#define CMAC_CM_DIAG_PORT11_REG_DIAG_BIT_Msk (0x1f00UL)             /*!< DIAG_BIT (Bitfield-Mask: 0x1f)                        */
+#define CMAC_CM_DIAG_PORT11_REG_DIAG_WORD_Pos (0UL)                 /*!< DIAG_WORD (Bit 0)                                     */
+#define CMAC_CM_DIAG_PORT11_REG_DIAG_WORD_Msk (0xfUL)               /*!< DIAG_WORD (Bitfield-Mask: 0x0f)                       */
+/* ==================================================  CM_DIAG_PORT12_REG  =================================================== */
+#define CMAC_CM_DIAG_PORT12_REG_DIAG_INV_Pos (16UL)                 /*!< DIAG_INV (Bit 16)                                     */
+#define CMAC_CM_DIAG_PORT12_REG_DIAG_INV_Msk (0x10000UL)            /*!< DIAG_INV (Bitfield-Mask: 0x01)                        */
+#define CMAC_CM_DIAG_PORT12_REG_DIAG_BIT_Pos (8UL)                  /*!< DIAG_BIT (Bit 8)                                      */
+#define CMAC_CM_DIAG_PORT12_REG_DIAG_BIT_Msk (0x1f00UL)             /*!< DIAG_BIT (Bitfield-Mask: 0x1f)                        */
+#define CMAC_CM_DIAG_PORT12_REG_DIAG_WORD_Pos (0UL)                 /*!< DIAG_WORD (Bit 0)                                     */
+#define CMAC_CM_DIAG_PORT12_REG_DIAG_WORD_Msk (0xfUL)               /*!< DIAG_WORD (Bitfield-Mask: 0x0f)                       */
+/* ==================================================  CM_DIAG_PORT13_REG  =================================================== */
+#define CMAC_CM_DIAG_PORT13_REG_DIAG_INV_Pos (16UL)                 /*!< DIAG_INV (Bit 16)                                     */
+#define CMAC_CM_DIAG_PORT13_REG_DIAG_INV_Msk (0x10000UL)            /*!< DIAG_INV (Bitfield-Mask: 0x01)                        */
+#define CMAC_CM_DIAG_PORT13_REG_DIAG_BIT_Pos (8UL)                  /*!< DIAG_BIT (Bit 8)                                      */
+#define CMAC_CM_DIAG_PORT13_REG_DIAG_BIT_Msk (0x1f00UL)             /*!< DIAG_BIT (Bitfield-Mask: 0x1f)                        */
+#define CMAC_CM_DIAG_PORT13_REG_DIAG_WORD_Pos (0UL)                 /*!< DIAG_WORD (Bit 0)                                     */
+#define CMAC_CM_DIAG_PORT13_REG_DIAG_WORD_Msk (0xfUL)               /*!< DIAG_WORD (Bitfield-Mask: 0x0f)                       */
+/* ==================================================  CM_DIAG_PORT14_REG  =================================================== */
+#define CMAC_CM_DIAG_PORT14_REG_DIAG_INV_Pos (16UL)                 /*!< DIAG_INV (Bit 16)                                     */
+#define CMAC_CM_DIAG_PORT14_REG_DIAG_INV_Msk (0x10000UL)            /*!< DIAG_INV (Bitfield-Mask: 0x01)                        */
+#define CMAC_CM_DIAG_PORT14_REG_DIAG_BIT_Pos (8UL)                  /*!< DIAG_BIT (Bit 8)                                      */
+#define CMAC_CM_DIAG_PORT14_REG_DIAG_BIT_Msk (0x1f00UL)             /*!< DIAG_BIT (Bitfield-Mask: 0x1f)                        */
+#define CMAC_CM_DIAG_PORT14_REG_DIAG_WORD_Pos (0UL)                 /*!< DIAG_WORD (Bit 0)                                     */
+#define CMAC_CM_DIAG_PORT14_REG_DIAG_WORD_Msk (0xfUL)               /*!< DIAG_WORD (Bitfield-Mask: 0x0f)                       */
+/* ==================================================  CM_DIAG_PORT15_REG  =================================================== */
+#define CMAC_CM_DIAG_PORT15_REG_DIAG_INV_Pos (16UL)                 /*!< DIAG_INV (Bit 16)                                     */
+#define CMAC_CM_DIAG_PORT15_REG_DIAG_INV_Msk (0x10000UL)            /*!< DIAG_INV (Bitfield-Mask: 0x01)                        */
+#define CMAC_CM_DIAG_PORT15_REG_DIAG_BIT_Pos (8UL)                  /*!< DIAG_BIT (Bit 8)                                      */
+#define CMAC_CM_DIAG_PORT15_REG_DIAG_BIT_Msk (0x1f00UL)             /*!< DIAG_BIT (Bitfield-Mask: 0x1f)                        */
+#define CMAC_CM_DIAG_PORT15_REG_DIAG_WORD_Pos (0UL)                 /*!< DIAG_WORD (Bit 0)                                     */
+#define CMAC_CM_DIAG_PORT15_REG_DIAG_WORD_Msk (0xfUL)               /*!< DIAG_WORD (Bitfield-Mask: 0x0f)                       */
+/* ===================================================  CM_DIAG_PORT1_REG  =================================================== */
+#define CMAC_CM_DIAG_PORT1_REG_DIAG_INV_Pos (16UL)                  /*!< DIAG_INV (Bit 16)                                     */
+#define CMAC_CM_DIAG_PORT1_REG_DIAG_INV_Msk (0x10000UL)             /*!< DIAG_INV (Bitfield-Mask: 0x01)                        */
+#define CMAC_CM_DIAG_PORT1_REG_DIAG_BIT_Pos (8UL)                   /*!< DIAG_BIT (Bit 8)                                      */
+#define CMAC_CM_DIAG_PORT1_REG_DIAG_BIT_Msk (0x1f00UL)              /*!< DIAG_BIT (Bitfield-Mask: 0x1f)                        */
+#define CMAC_CM_DIAG_PORT1_REG_DIAG_WORD_Pos (0UL)                  /*!< DIAG_WORD (Bit 0)                                     */
+#define CMAC_CM_DIAG_PORT1_REG_DIAG_WORD_Msk (0xfUL)                /*!< DIAG_WORD (Bitfield-Mask: 0x0f)                       */
+/* ===================================================  CM_DIAG_PORT2_REG  =================================================== */
+#define CMAC_CM_DIAG_PORT2_REG_DIAG_INV_Pos (16UL)                  /*!< DIAG_INV (Bit 16)                                     */
+#define CMAC_CM_DIAG_PORT2_REG_DIAG_INV_Msk (0x10000UL)             /*!< DIAG_INV (Bitfield-Mask: 0x01)                        */
+#define CMAC_CM_DIAG_PORT2_REG_DIAG_BIT_Pos (8UL)                   /*!< DIAG_BIT (Bit 8)                                      */
+#define CMAC_CM_DIAG_PORT2_REG_DIAG_BIT_Msk (0x1f00UL)              /*!< DIAG_BIT (Bitfield-Mask: 0x1f)                        */
+#define CMAC_CM_DIAG_PORT2_REG_DIAG_WORD_Pos (0UL)                  /*!< DIAG_WORD (Bit 0)                                     */
+#define CMAC_CM_DIAG_PORT2_REG_DIAG_WORD_Msk (0xfUL)                /*!< DIAG_WORD (Bitfield-Mask: 0x0f)                       */
+/* ===================================================  CM_DIAG_PORT3_REG  =================================================== */
+#define CMAC_CM_DIAG_PORT3_REG_DIAG_INV_Pos (16UL)                  /*!< DIAG_INV (Bit 16)                                     */
+#define CMAC_CM_DIAG_PORT3_REG_DIAG_INV_Msk (0x10000UL)             /*!< DIAG_INV (Bitfield-Mask: 0x01)                        */
+#define CMAC_CM_DIAG_PORT3_REG_DIAG_BIT_Pos (8UL)                   /*!< DIAG_BIT (Bit 8)                                      */
+#define CMAC_CM_DIAG_PORT3_REG_DIAG_BIT_Msk (0x1f00UL)              /*!< DIAG_BIT (Bitfield-Mask: 0x1f)                        */
+#define CMAC_CM_DIAG_PORT3_REG_DIAG_WORD_Pos (0UL)                  /*!< DIAG_WORD (Bit 0)                                     */
+#define CMAC_CM_DIAG_PORT3_REG_DIAG_WORD_Msk (0xfUL)                /*!< DIAG_WORD (Bitfield-Mask: 0x0f)                       */
+/* ===================================================  CM_DIAG_PORT4_REG  =================================================== */
+#define CMAC_CM_DIAG_PORT4_REG_DIAG_INV_Pos (16UL)                  /*!< DIAG_INV (Bit 16)                                     */
+#define CMAC_CM_DIAG_PORT4_REG_DIAG_INV_Msk (0x10000UL)             /*!< DIAG_INV (Bitfield-Mask: 0x01)                        */
+#define CMAC_CM_DIAG_PORT4_REG_DIAG_BIT_Pos (8UL)                   /*!< DIAG_BIT (Bit 8)                                      */
+#define CMAC_CM_DIAG_PORT4_REG_DIAG_BIT_Msk (0x1f00UL)              /*!< DIAG_BIT (Bitfield-Mask: 0x1f)                        */
+#define CMAC_CM_DIAG_PORT4_REG_DIAG_WORD_Pos (0UL)                  /*!< DIAG_WORD (Bit 0)                                     */
+#define CMAC_CM_DIAG_PORT4_REG_DIAG_WORD_Msk (0xfUL)                /*!< DIAG_WORD (Bitfield-Mask: 0x0f)                       */
+/* ===================================================  CM_DIAG_PORT5_REG  =================================================== */
+#define CMAC_CM_DIAG_PORT5_REG_DIAG_INV_Pos (16UL)                  /*!< DIAG_INV (Bit 16)                                     */
+#define CMAC_CM_DIAG_PORT5_REG_DIAG_INV_Msk (0x10000UL)             /*!< DIAG_INV (Bitfield-Mask: 0x01)                        */
+#define CMAC_CM_DIAG_PORT5_REG_DIAG_BIT_Pos (8UL)                   /*!< DIAG_BIT (Bit 8)                                      */
+#define CMAC_CM_DIAG_PORT5_REG_DIAG_BIT_Msk (0x1f00UL)              /*!< DIAG_BIT (Bitfield-Mask: 0x1f)                        */
+#define CMAC_CM_DIAG_PORT5_REG_DIAG_WORD_Pos (0UL)                  /*!< DIAG_WORD (Bit 0)                                     */
+#define CMAC_CM_DIAG_PORT5_REG_DIAG_WORD_Msk (0xfUL)                /*!< DIAG_WORD (Bitfield-Mask: 0x0f)                       */
+/* ===================================================  CM_DIAG_PORT6_REG  =================================================== */
+#define CMAC_CM_DIAG_PORT6_REG_DIAG_INV_Pos (16UL)                  /*!< DIAG_INV (Bit 16)                                     */
+#define CMAC_CM_DIAG_PORT6_REG_DIAG_INV_Msk (0x10000UL)             /*!< DIAG_INV (Bitfield-Mask: 0x01)                        */
+#define CMAC_CM_DIAG_PORT6_REG_DIAG_BIT_Pos (8UL)                   /*!< DIAG_BIT (Bit 8)                                      */
+#define CMAC_CM_DIAG_PORT6_REG_DIAG_BIT_Msk (0x1f00UL)              /*!< DIAG_BIT (Bitfield-Mask: 0x1f)                        */
+#define CMAC_CM_DIAG_PORT6_REG_DIAG_WORD_Pos (0UL)                  /*!< DIAG_WORD (Bit 0)                                     */
+#define CMAC_CM_DIAG_PORT6_REG_DIAG_WORD_Msk (0xfUL)                /*!< DIAG_WORD (Bitfield-Mask: 0x0f)                       */
+/* ===================================================  CM_DIAG_PORT7_REG  =================================================== */
+#define CMAC_CM_DIAG_PORT7_REG_DIAG_INV_Pos (16UL)                  /*!< DIAG_INV (Bit 16)                                     */
+#define CMAC_CM_DIAG_PORT7_REG_DIAG_INV_Msk (0x10000UL)             /*!< DIAG_INV (Bitfield-Mask: 0x01)                        */
+#define CMAC_CM_DIAG_PORT7_REG_DIAG_BIT_Pos (8UL)                   /*!< DIAG_BIT (Bit 8)                                      */
+#define CMAC_CM_DIAG_PORT7_REG_DIAG_BIT_Msk (0x1f00UL)              /*!< DIAG_BIT (Bitfield-Mask: 0x1f)                        */
+#define CMAC_CM_DIAG_PORT7_REG_DIAG_WORD_Pos (0UL)                  /*!< DIAG_WORD (Bit 0)                                     */
+#define CMAC_CM_DIAG_PORT7_REG_DIAG_WORD_Msk (0xfUL)                /*!< DIAG_WORD (Bitfield-Mask: 0x0f)                       */
+/* ===================================================  CM_DIAG_PORT8_REG  =================================================== */
+#define CMAC_CM_DIAG_PORT8_REG_DIAG_INV_Pos (16UL)                  /*!< DIAG_INV (Bit 16)                                     */
+#define CMAC_CM_DIAG_PORT8_REG_DIAG_INV_Msk (0x10000UL)             /*!< DIAG_INV (Bitfield-Mask: 0x01)                        */
+#define CMAC_CM_DIAG_PORT8_REG_DIAG_BIT_Pos (8UL)                   /*!< DIAG_BIT (Bit 8)                                      */
+#define CMAC_CM_DIAG_PORT8_REG_DIAG_BIT_Msk (0x1f00UL)              /*!< DIAG_BIT (Bitfield-Mask: 0x1f)                        */
+#define CMAC_CM_DIAG_PORT8_REG_DIAG_WORD_Pos (0UL)                  /*!< DIAG_WORD (Bit 0)                                     */
+#define CMAC_CM_DIAG_PORT8_REG_DIAG_WORD_Msk (0xfUL)                /*!< DIAG_WORD (Bitfield-Mask: 0x0f)                       */
+/* ===================================================  CM_DIAG_PORT9_REG  =================================================== */
+#define CMAC_CM_DIAG_PORT9_REG_DIAG_INV_Pos (16UL)                  /*!< DIAG_INV (Bit 16)                                     */
+#define CMAC_CM_DIAG_PORT9_REG_DIAG_INV_Msk (0x10000UL)             /*!< DIAG_INV (Bitfield-Mask: 0x01)                        */
+#define CMAC_CM_DIAG_PORT9_REG_DIAG_BIT_Pos (8UL)                   /*!< DIAG_BIT (Bit 8)                                      */
+#define CMAC_CM_DIAG_PORT9_REG_DIAG_BIT_Msk (0x1f00UL)              /*!< DIAG_BIT (Bitfield-Mask: 0x1f)                        */
+#define CMAC_CM_DIAG_PORT9_REG_DIAG_WORD_Pos (0UL)                  /*!< DIAG_WORD (Bit 0)                                     */
+#define CMAC_CM_DIAG_PORT9_REG_DIAG_WORD_Msk (0xfUL)                /*!< DIAG_WORD (Bitfield-Mask: 0x0f)                       */
+/* ===================================================  CM_DIAG_WORD0_REG  =================================================== */
+#define CMAC_CM_DIAG_WORD0_REG_DIAG0_NULL_Pos (0UL)                 /*!< DIAG0_NULL (Bit 0)                                    */
+#define CMAC_CM_DIAG_WORD0_REG_DIAG0_NULL_Msk (0x1UL)               /*!< DIAG0_NULL (Bitfield-Mask: 0x01)                      */
+/* ==================================================  CM_DIAG_WORD10_REG  =================================================== */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_EV1C_DMA2CRYPTO_REQ_Pos (22UL) /*!< DIAG10_EV1C_DMA2CRYPTO_REQ (Bit 22)                 */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_EV1C_DMA2CRYPTO_REQ_Msk (0x400000UL) /*!< DIAG10_EV1C_DMA2CRYPTO_REQ (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_EV_CRYPTO_START_Pos (21UL)   /*!< DIAG10_EV_CRYPTO_START (Bit 21)                       */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_EV_CRYPTO_START_Msk (0x200000UL) /*!< DIAG10_EV_CRYPTO_START (Bitfield-Mask: 0x01)      */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_CRYPTO_BUSY_Pos (20UL)       /*!< DIAG10_CRYPTO_BUSY (Bit 20)                           */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_CRYPTO_BUSY_Msk (0x100000UL) /*!< DIAG10_CRYPTO_BUSY (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_CRYPTO_MIC_ERROR_Pos (19UL)  /*!< DIAG10_CRYPTO_MIC_ERROR (Bit 19)                      */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_CRYPTO_MIC_ERROR_Msk (0x80000UL) /*!< DIAG10_CRYPTO_MIC_ERROR (Bitfield-Mask: 0x01)     */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_CRYPTO_SER_IN_REQ_Pos (18UL) /*!< DIAG10_CRYPTO_SER_IN_REQ (Bit 18)                     */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_CRYPTO_SER_IN_REQ_Msk (0x40000UL) /*!< DIAG10_CRYPTO_SER_IN_REQ (Bitfield-Mask: 0x01)   */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_CRYPTO_SER_OUT_REQ_Pos (17UL) /*!< DIAG10_CRYPTO_SER_OUT_REQ (Bit 17)                   */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_CRYPTO_SER_OUT_REQ_Msk (0x20000UL) /*!< DIAG10_CRYPTO_SER_OUT_REQ (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_CRYPTO_DMA_IN_CS_Pos (16UL)  /*!< DIAG10_CRYPTO_DMA_IN_CS (Bit 16)                      */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_CRYPTO_DMA_IN_CS_Msk (0x10000UL) /*!< DIAG10_CRYPTO_DMA_IN_CS (Bitfield-Mask: 0x01)     */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_CRYPTO_DMA_OUT_CS_Pos (14UL) /*!< DIAG10_CRYPTO_DMA_OUT_CS (Bit 14)                     */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_CRYPTO_DMA_OUT_CS_Msk (0x4000UL) /*!< DIAG10_CRYPTO_DMA_OUT_CS (Bitfield-Mask: 0x01)    */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_CRYPTO_RD_AUTH_Pos (12UL)    /*!< DIAG10_CRYPTO_RD_AUTH (Bit 12)                        */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_CRYPTO_RD_AUTH_Msk (0x1000UL) /*!< DIAG10_CRYPTO_RD_AUTH (Bitfield-Mask: 0x01)          */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_CRYPTO_RD_ADATA_Pos (11UL)   /*!< DIAG10_CRYPTO_RD_ADATA (Bit 11)                       */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_CRYPTO_RD_ADATA_Msk (0x800UL) /*!< DIAG10_CRYPTO_RD_ADATA (Bitfield-Mask: 0x01)         */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_CRYPTO_RD_ENCR_Pos (10UL)    /*!< DIAG10_CRYPTO_RD_ENCR (Bit 10)                        */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_CRYPTO_RD_ENCR_Msk (0x400UL) /*!< DIAG10_CRYPTO_RD_ENCR (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_CRYPTO_RD_PLD_Pos (9UL)      /*!< DIAG10_CRYPTO_RD_PLD (Bit 9)                          */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_CRYPTO_RD_PLD_Msk (0x200UL)  /*!< DIAG10_CRYPTO_RD_PLD (Bitfield-Mask: 0x01)            */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_CRYPTO_RD_CNT_Pos (0UL)      /*!< DIAG10_CRYPTO_RD_CNT (Bit 0)                          */
+#define CMAC_CM_DIAG_WORD10_REG_DIAG10_CRYPTO_RD_CNT_Msk (0x1ffUL)  /*!< DIAG10_CRYPTO_RD_CNT (Bitfield-Mask: 0x1ff)           */
+/* ===================================================  CM_DIAG_WORD1_REG  =================================================== */
+#define CMAC_CM_DIAG_WORD1_REG_DIAG1_SIGNAL_DETECTED_Pos (10UL)     /*!< DIAG1_SIGNAL_DETECTED (Bit 10)                        */
+#define CMAC_CM_DIAG_WORD1_REG_DIAG1_SIGNAL_DETECTED_Msk (0x400UL)  /*!< DIAG1_SIGNAL_DETECTED (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_DIAG_WORD1_REG_DIAG1_MATCH0101_Pos (9UL)            /*!< DIAG1_MATCH0101 (Bit 9)                               */
+#define CMAC_CM_DIAG_WORD1_REG_DIAG1_MATCH0101_Msk (0x200UL)        /*!< DIAG1_MATCH0101 (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_DIAG_WORD1_REG_DIAG1_SYNC_FOUND_Pos (8UL)           /*!< DIAG1_SYNC_FOUND (Bit 8)                              */
+#define CMAC_CM_DIAG_WORD1_REG_DIAG1_SYNC_FOUND_Msk (0x100UL)       /*!< DIAG1_SYNC_FOUND (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_DIAG_WORD1_REG_DIAG1_PHY_TX_EN_RFCU_Pos (7UL)       /*!< DIAG1_PHY_TX_EN_RFCU (Bit 7)                          */
+#define CMAC_CM_DIAG_WORD1_REG_DIAG1_PHY_TX_EN_RFCU_Msk (0x80UL)    /*!< DIAG1_PHY_TX_EN_RFCU (Bitfield-Mask: 0x01)            */
+#define CMAC_CM_DIAG_WORD1_REG_DIAG1_PHY_RX_EN_RFCU_Pos (6UL)       /*!< DIAG1_PHY_RX_EN_RFCU (Bit 6)                          */
+#define CMAC_CM_DIAG_WORD1_REG_DIAG1_PHY_RX_EN_RFCU_Msk (0x40UL)    /*!< DIAG1_PHY_RX_EN_RFCU (Bitfield-Mask: 0x01)            */
+#define CMAC_CM_DIAG_WORD1_REG_DIAG1_DCF_26_Pos (5UL)               /*!< DIAG1_DCF_26 (Bit 5)                                  */
+#define CMAC_CM_DIAG_WORD1_REG_DIAG1_DCF_26_Msk (0x20UL)            /*!< DIAG1_DCF_26 (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_DIAG_WORD1_REG_DIAG1_DCF_25_Pos (4UL)               /*!< DIAG1_DCF_25 (Bit 4)                                  */
+#define CMAC_CM_DIAG_WORD1_REG_DIAG1_DCF_25_Msk (0x10UL)            /*!< DIAG1_DCF_25 (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_DIAG_WORD1_REG_DIAG1_DCF_24_Pos (3UL)               /*!< DIAG1_DCF_24 (Bit 3)                                  */
+#define CMAC_CM_DIAG_WORD1_REG_DIAG1_DCF_24_Msk (0x8UL)             /*!< DIAG1_DCF_24 (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_DIAG_WORD1_REG_DIAG1_DCF_23_Pos (2UL)               /*!< DIAG1_DCF_23 (Bit 2)                                  */
+#define CMAC_CM_DIAG_WORD1_REG_DIAG1_DCF_23_Msk (0x4UL)             /*!< DIAG1_DCF_23 (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_DIAG_WORD1_REG_DIAG1_DCF_22_Pos (1UL)               /*!< DIAG1_DCF_22 (Bit 1)                                  */
+#define CMAC_CM_DIAG_WORD1_REG_DIAG1_DCF_22_Msk (0x2UL)             /*!< DIAG1_DCF_22 (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_DIAG_WORD1_REG_DIAG1_DCF_21_Pos (0UL)               /*!< DIAG1_DCF_21 (Bit 0)                                  */
+#define CMAC_CM_DIAG_WORD1_REG_DIAG1_DCF_21_Msk (0x1UL)             /*!< DIAG1_DCF_21 (Bitfield-Mask: 0x01)                    */
+/* ===================================================  CM_DIAG_WORD2_REG  =================================================== */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_TX_DATA_ENVELOP_Pos (18UL) /*!< DIAG2_PHY_TX_DATA_ENVELOP (Bit 18)                    */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_TX_DATA_ENVELOP_Msk (0x40000UL) /*!< DIAG2_PHY_TX_DATA_ENVELOP (Bitfield-Mask: 0x01)  */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_RX_EN_TMP_Pos (17UL)       /*!< DIAG2_PHY_RX_EN_TMP (Bit 17)                          */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_RX_EN_TMP_Msk (0x20000UL)  /*!< DIAG2_PHY_RX_EN_TMP (Bitfield-Mask: 0x01)             */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_TX_EN_TMP_Pos (16UL)       /*!< DIAG2_PHY_TX_EN_TMP (Bit 16)                          */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_TX_EN_TMP_Msk (0x10000UL)  /*!< DIAG2_PHY_TX_EN_TMP (Bitfield-Mask: 0x01)             */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_RX_EN_Pos (15UL)           /*!< DIAG2_PHY_RX_EN (Bit 15)                              */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_RX_EN_Msk (0x8000UL)       /*!< DIAG2_PHY_RX_EN (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_TX_EN_Pos (14UL)           /*!< DIAG2_PHY_TX_EN (Bit 14)                              */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_TX_EN_Msk (0x4000UL)       /*!< DIAG2_PHY_TX_EN (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_RX_DATA_EN_Pos (13UL)      /*!< DIAG2_PHY_RX_DATA_EN (Bit 13)                         */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_RX_DATA_EN_Msk (0x2000UL)  /*!< DIAG2_PHY_RX_DATA_EN (Bitfield-Mask: 0x01)            */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_RX_DATA_SAMPLED_Pos (12UL) /*!< DIAG2_PHY_RX_DATA_SAMPLED (Bit 12)                    */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_RX_DATA_SAMPLED_Msk (0x1000UL) /*!< DIAG2_PHY_RX_DATA_SAMPLED (Bitfield-Mask: 0x01)   */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_RX_DATA_CORR_Pos (11UL)    /*!< DIAG2_PHY_RX_DATA_CORR (Bit 11)                       */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_RX_DATA_CORR_Msk (0x800UL) /*!< DIAG2_PHY_RX_DATA_CORR (Bitfield-Mask: 0x01)          */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_RX_DATA_Pos (10UL)         /*!< DIAG2_PHY_RX_DATA (Bit 10)                            */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_RX_DATA_Msk (0x400UL)      /*!< DIAG2_PHY_RX_DATA (Bitfield-Mask: 0x01)               */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_TX_DATA_EN_Pos (9UL)       /*!< DIAG2_PHY_TX_DATA_EN (Bit 9)                          */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_TX_DATA_EN_Msk (0x200UL)   /*!< DIAG2_PHY_TX_DATA_EN (Bitfield-Mask: 0x01)            */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_TX_DATA_Pos (8UL)          /*!< DIAG2_PHY_TX_DATA (Bit 8)                             */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_TX_DATA_Msk (0x100UL)      /*!< DIAG2_PHY_TX_DATA (Bitfield-Mask: 0x01)               */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_TXRX_DATA_B4WHITE_Pos (7UL) /*!< DIAG2_PHY_TXRX_DATA_B4WHITE (Bit 7)                  */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_TXRX_DATA_B4WHITE_Msk (0x80UL) /*!< DIAG2_PHY_TXRX_DATA_B4WHITE (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_TXRX_DATA_Pos (6UL)        /*!< DIAG2_PHY_TXRX_DATA (Bit 6)                           */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_TXRX_DATA_Msk (0x40UL)     /*!< DIAG2_PHY_TXRX_DATA (Bitfield-Mask: 0x01)             */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_RDY4BS_INT_Pos (5UL)       /*!< DIAG2_PHY_RDY4BS_INT (Bit 5)                          */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_RDY4BS_INT_Msk (0x20UL)    /*!< DIAG2_PHY_RDY4BS_INT (Bitfield-Mask: 0x01)            */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_BUSY_BUF_Pos (4UL)         /*!< DIAG2_PHY_BUSY_BUF (Bit 4)                            */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_BUSY_BUF_Msk (0x10UL)      /*!< DIAG2_PHY_BUSY_BUF (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_CORR_SHIFT_EN_Pos (3UL)        /*!< DIAG2_CORR_SHIFT_EN (Bit 3)                           */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_CORR_SHIFT_EN_Msk (0x8UL)      /*!< DIAG2_CORR_SHIFT_EN (Bitfield-Mask: 0x01)             */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_CORR_COMB_Pos (2UL)            /*!< DIAG2_CORR_COMB (Bit 2)                               */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_CORR_COMB_Msk (0x4UL)          /*!< DIAG2_CORR_COMB (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_TXRX_DATA_EN_COMB_Pos (1UL) /*!< DIAG2_PHY_TXRX_DATA_EN_COMB (Bit 1)                  */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_TXRX_DATA_EN_COMB_Msk (0x2UL) /*!< DIAG2_PHY_TXRX_DATA_EN_COMB (Bitfield-Mask: 0x01)  */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_TXRX_DATA_COMB_Pos (0UL)   /*!< DIAG2_PHY_TXRX_DATA_COMB (Bit 0)                      */
+#define CMAC_CM_DIAG_WORD2_REG_DIAG2_PHY_TXRX_DATA_COMB_Msk (0x1UL) /*!< DIAG2_PHY_TXRX_DATA_COMB (Bitfield-Mask: 0x01)        */
+/* ===================================================  CM_DIAG_WORD3_REG  =================================================== */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_AOAD_PORT_Pos (24UL)           /*!< DIAG3_AOAD_PORT (Bit 24)                              */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_AOAD_PORT_Msk (0xff000000UL)   /*!< DIAG3_AOAD_PORT (Bitfield-Mask: 0xff)                 */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_FRAME_COEX_PTI_Pos (23UL)      /*!< DIAG3_FRAME_COEX_PTI (Bit 23)                         */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_FRAME_COEX_PTI_Msk (0x800000UL) /*!< DIAG3_FRAME_COEX_PTI (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_COEX_MASKS_TXRX_EN_Pos (22UL)  /*!< DIAG3_COEX_MASKS_TXRX_EN (Bit 22)                     */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_COEX_MASKS_TXRX_EN_Msk (0x400000UL) /*!< DIAG3_COEX_MASKS_TXRX_EN (Bitfield-Mask: 0x01)   */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_COEX_EXT_ACT_BUF_Pos (21UL)    /*!< DIAG3_COEX_EXT_ACT_BUF (Bit 21)                       */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_COEX_EXT_ACT_BUF_Msk (0x200000UL) /*!< DIAG3_COEX_EXT_ACT_BUF (Bitfield-Mask: 0x01)       */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_TCLK_FROM_PCLK_Pos (20UL)      /*!< DIAG3_TCLK_FROM_PCLK (Bit 20)                         */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_TCLK_FROM_PCLK_Msk (0x100000UL) /*!< DIAG3_TCLK_FROM_PCLK (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_SLP_TIMER_ACTIVE_Pos (19UL)    /*!< DIAG3_SLP_TIMER_ACTIVE (Bit 19)                       */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_SLP_TIMER_ACTIVE_Msk (0x80000UL) /*!< DIAG3_SLP_TIMER_ACTIVE (Bitfield-Mask: 0x01)        */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_TS1_DIRTY_Pos (18UL)           /*!< DIAG3_TS1_DIRTY (Bit 18)                              */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_TS1_DIRTY_Msk (0x40000UL)      /*!< DIAG3_TS1_DIRTY (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_CALLBACK_IRQ_VALID_Pos (17UL)  /*!< DIAG3_CALLBACK_IRQ_VALID (Bit 17)                     */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_CALLBACK_IRQ_VALID_Msk (0x20000UL) /*!< DIAG3_CALLBACK_IRQ_VALID (Bitfield-Mask: 0x01)    */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_CM_EV_LINKUP_REG_WR_P_Pos (16UL) /*!< DIAG3_CM_EV_LINKUP_REG_WR_P (Bit 16)                */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_CM_EV_LINKUP_REG_WR_P_Msk (0x10000UL) /*!< DIAG3_CM_EV_LINKUP_REG_WR_P (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_CM_WHITENING_REG_WR_P_Pos (15UL) /*!< DIAG3_CM_WHITENING_REG_WR_P (Bit 15)                */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_CM_WHITENING_REG_WR_P_Msk (0x8000UL) /*!< DIAG3_CM_WHITENING_REG_WR_P (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_CM_CRC_REG_WR_P_Pos (14UL)     /*!< DIAG3_CM_CRC_REG_WR_P (Bit 14)                        */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_CM_CRC_REG_WR_P_Msk (0x4000UL) /*!< DIAG3_CM_CRC_REG_WR_P (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_CRC_ZERO_Pos (13UL)            /*!< DIAG3_CRC_ZERO (Bit 13)                               */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_CRC_ZERO_Msk (0x2000UL)        /*!< DIAG3_CRC_ZERO (Bitfield-Mask: 0x01)                  */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_DMA2BS_RDY_Pos (12UL)          /*!< DIAG3_DMA2BS_RDY (Bit 12)                             */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_DMA2BS_RDY_Msk (0x1000UL)      /*!< DIAG3_DMA2BS_RDY (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_BS_SMPL_VALID_Pos (11UL)       /*!< DIAG3_BS_SMPL_VALID (Bit 11)                          */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_BS_SMPL_VALID_Msk (0x800UL)    /*!< DIAG3_BS_SMPL_VALID (Bitfield-Mask: 0x01)             */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_CLK_EV_OFFSET_CHANGE_Pos (10UL) /*!< DIAG3_CLK_EV_OFFSET_CHANGE (Bit 10)                  */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_CLK_EV_OFFSET_CHANGE_Msk (0x400UL) /*!< DIAG3_CLK_EV_OFFSET_CHANGE (Bitfield-Mask: 0x01)  */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_CLK_EV_OFFSET_Pos (4UL)        /*!< DIAG3_CLK_EV_OFFSET (Bit 4)                           */
+#define CMAC_CM_DIAG_WORD3_REG_DIAG3_CLK_EV_OFFSET_Msk (0x3f0UL)    /*!< DIAG3_CLK_EV_OFFSET (Bitfield-Mask: 0x3f)             */
+/* ===================================================  CM_DIAG_WORD4_REG  =================================================== */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_SWD_ATTACHED_Pos (31UL)        /*!< DIAG4_SWD_ATTACHED (Bit 31)                           */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_SWD_ATTACHED_Msk (0x80000000UL) /*!< DIAG4_SWD_ATTACHED (Bitfield-Mask: 0x01)             */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_MCPU_HMASTER_Pos (30UL)        /*!< DIAG4_MCPU_HMASTER (Bit 30)                           */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_MCPU_HMASTER_Msk (0x40000000UL) /*!< DIAG4_MCPU_HMASTER (Bitfield-Mask: 0x01)             */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_MCPU_SYS_RST_REQ_Pos (29UL)    /*!< DIAG4_MCPU_SYS_RST_REQ (Bit 29)                       */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_MCPU_SYS_RST_REQ_Msk (0x20000000UL) /*!< DIAG4_MCPU_SYS_RST_REQ (Bitfield-Mask: 0x01)     */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_MCPU_HALTED_BUF_Pos (28UL)     /*!< DIAG4_MCPU_HALTED_BUF (Bit 28)                        */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_MCPU_HALTED_BUF_Msk (0x10000000UL) /*!< DIAG4_MCPU_HALTED_BUF (Bitfield-Mask: 0x01)       */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_SLEEPING_Pos (27UL)            /*!< DIAG4_SLEEPING (Bit 27)                               */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_SLEEPING_Msk (0x8000000UL)     /*!< DIAG4_SLEEPING (Bitfield-Mask: 0x01)                  */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_TIMERS_HALT_Pos (25UL)         /*!< DIAG4_TIMERS_HALT (Bit 25)                            */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_TIMERS_HALT_Msk (0x2000000UL)  /*!< DIAG4_TIMERS_HALT (Bitfield-Mask: 0x01)               */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_MCPU_LOCKUP_Pos (23UL)         /*!< DIAG4_MCPU_LOCKUP (Bit 23)                            */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_MCPU_LOCKUP_Msk (0x800000UL)   /*!< DIAG4_MCPU_LOCKUP (Bitfield-Mask: 0x01)               */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_MCPU_NMI_Pos (22UL)            /*!< DIAG4_MCPU_NMI (Bit 22)                               */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_MCPU_NMI_Msk (0x400000UL)      /*!< DIAG4_MCPU_NMI (Bitfield-Mask: 0x01)                  */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_MCPU_RXEV_Pos (21UL)           /*!< DIAG4_MCPU_RXEV (Bit 21)                              */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_MCPU_RXEV_Msk (0x200000UL)     /*!< DIAG4_MCPU_RXEV (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_MCPU_TXEV_Pos (20UL)           /*!< DIAG4_MCPU_TXEV (Bit 20)                              */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_MCPU_TXEV_Msk (0x100000UL)     /*!< DIAG4_MCPU_TXEV (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_MCPU_HREADY_Pos (17UL)         /*!< DIAG4_MCPU_HREADY (Bit 17)                            */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_MCPU_HREADY_Msk (0x20000UL)    /*!< DIAG4_MCPU_HREADY (Bitfield-Mask: 0x01)               */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_DSER_Pos (0UL)                 /*!< DIAG4_DSER (Bit 0)                                    */
+#define CMAC_CM_DIAG_WORD4_REG_DIAG4_DSER_Msk (0x1UL)               /*!< DIAG4_DSER (Bitfield-Mask: 0x01)                      */
+/* ===================================================  CM_DIAG_WORD5_REG  =================================================== */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1C_LP_CLK_TOGGLE_Pos (16UL)  /*!< DIAG5_EV1C_LP_CLK_TOGGLE (Bit 16)                     */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1C_LP_CLK_TOGGLE_Msk (0x10000UL) /*!< DIAG5_EV1C_LP_CLK_TOGGLE (Bitfield-Mask: 0x01)    */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1C_TS1_TRIGGER_Pos (15UL)    /*!< DIAG5_EV1C_TS1_TRIGGER (Bit 15)                       */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1C_TS1_TRIGGER_Msk (0x8000UL) /*!< DIAG5_EV1C_TS1_TRIGGER (Bitfield-Mask: 0x01)         */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1C_BS2MC_DMA_CRITICAL_Pos (14UL) /*!< DIAG5_EV1C_BS2MC_DMA_CRITICAL (Bit 14)            */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1C_BS2MC_DMA_CRITICAL_Msk (0x4000UL) /*!< DIAG5_EV1C_BS2MC_DMA_CRITICAL (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1C_BS2DMA_REQ_Pos (13UL)     /*!< DIAG5_EV1C_BS2DMA_REQ (Bit 13)                        */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1C_BS2DMA_REQ_Msk (0x2000UL) /*!< DIAG5_EV1C_BS2DMA_REQ (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1US_PHY_TO_IDLE_Pos (12UL)   /*!< DIAG5_EV1US_PHY_TO_IDLE (Bit 12)                      */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1US_PHY_TO_IDLE_Msk (0x1000UL) /*!< DIAG5_EV1US_PHY_TO_IDLE (Bitfield-Mask: 0x01)       */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1C_FRAME_REG_POP_Pos (11UL)  /*!< DIAG5_EV1C_FRAME_REG_POP (Bit 11)                     */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1C_FRAME_REG_POP_Msk (0x800UL) /*!< DIAG5_EV1C_FRAME_REG_POP (Bitfield-Mask: 0x01)      */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV_FIELD_REG_POP_Pos (10UL)    /*!< DIAG5_EV_FIELD_REG_POP (Bit 10)                       */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV_FIELD_REG_POP_Msk (0x400UL) /*!< DIAG5_EV_FIELD_REG_POP (Bitfield-Mask: 0x01)          */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1US_CORR_TIMEOUT_Pos (9UL)   /*!< DIAG5_EV1US_CORR_TIMEOUT (Bit 9)                      */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1US_CORR_TIMEOUT_Msk (0x200UL) /*!< DIAG5_EV1US_CORR_TIMEOUT (Bitfield-Mask: 0x01)      */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1C_FIELD_ON_THR_EXP_Pos (8UL) /*!< DIAG5_EV1C_FIELD_ON_THR_EXP (Bit 8)                  */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1C_FIELD_ON_THR_EXP_Msk (0x100UL) /*!< DIAG5_EV1C_FIELD_ON_THR_EXP (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1C_BS_SMPL_BUF_Pos (7UL)     /*!< DIAG5_EV1C_BS_SMPL_BUF (Bit 7)                        */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1C_BS_SMPL_BUF_Msk (0x80UL)  /*!< DIAG5_EV1C_BS_SMPL_BUF (Bitfield-Mask: 0x01)          */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV_WINDOW_CNT_THR_EXP_Pos (6UL) /*!< DIAG5_EV_WINDOW_CNT_THR_EXP (Bit 6)                  */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV_WINDOW_CNT_THR_EXP_Msk (0x40UL) /*!< DIAG5_EV_WINDOW_CNT_THR_EXP (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1C_BS_STOP_Pos (5UL)         /*!< DIAG5_EV1C_BS_STOP (Bit 5)                            */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1C_BS_STOP_Msk (0x20UL)      /*!< DIAG5_EV1C_BS_STOP (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV_BS_START_Pos (4UL)          /*!< DIAG5_EV_BS_START (Bit 4)                             */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV_BS_START_Msk (0x10UL)       /*!< DIAG5_EV_BS_START (Bitfield-Mask: 0x01)               */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1US_FRAME_START_Pos (3UL)    /*!< DIAG5_EV1US_FRAME_START (Bit 3)                       */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1US_FRAME_START_Msk (0x8UL)  /*!< DIAG5_EV1US_FRAME_START (Bitfield-Mask: 0x01)         */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV_SYMBOL_Pos (2UL)            /*!< DIAG5_EV_SYMBOL (Bit 2)                               */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV_SYMBOL_Msk (0x4UL)          /*!< DIAG5_EV_SYMBOL (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1C_CLK_EV_Pos (1UL)          /*!< DIAG5_EV1C_CLK_EV (Bit 1)                             */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1C_CLK_EV_Msk (0x2UL)        /*!< DIAG5_EV1C_CLK_EV (Bitfield-Mask: 0x01)               */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1C_CLK_1MHZ_Pos (0UL)        /*!< DIAG5_EV1C_CLK_1MHZ (Bit 0)                           */
+#define CMAC_CM_DIAG_WORD5_REG_DIAG5_EV1C_CLK_1MHZ_Msk (0x1UL)      /*!< DIAG5_EV1C_CLK_1MHZ (Bitfield-Mask: 0x01)             */
+/* ===================================================  CM_DIAG_WORD6_REG  =================================================== */
+#define CMAC_CM_DIAG_WORD6_REG_DIAG6_CMAC_ON_ERROR_Pos (31UL)       /*!< DIAG6_CMAC_ON_ERROR (Bit 31)                          */
+#define CMAC_CM_DIAG_WORD6_REG_DIAG6_CMAC_ON_ERROR_Msk (0x80000000UL) /*!< DIAG6_CMAC_ON_ERROR (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_DIAG_WORD6_REG_DIAG6_CM_BS_WINDOW_CNT_REG_Pos (26UL) /*!< DIAG6_CM_BS_WINDOW_CNT_REG (Bit 26)                  */
+#define CMAC_CM_DIAG_WORD6_REG_DIAG6_CM_BS_WINDOW_CNT_REG_Msk (0x7c000000UL) /*!< DIAG6_CM_BS_WINDOW_CNT_REG (Bitfield-Mask: 0x1f) */
+#define CMAC_CM_DIAG_WORD6_REG_DIAG6_FRAME_TIMER_Pos (12UL)         /*!< DIAG6_FRAME_TIMER (Bit 12)                            */
+#define CMAC_CM_DIAG_WORD6_REG_DIAG6_FRAME_TIMER_Msk (0x3fff000UL)  /*!< DIAG6_FRAME_TIMER (Bitfield-Mask: 0x3fff)             */
+#define CMAC_CM_DIAG_WORD6_REG_DIAG6_FIELD_CNT_Pos (8UL)            /*!< DIAG6_FIELD_CNT (Bit 8)                               */
+#define CMAC_CM_DIAG_WORD6_REG_DIAG6_FIELD_CNT_Msk (0xf00UL)        /*!< DIAG6_FIELD_CNT (Bitfield-Mask: 0x0f)                 */
+#define CMAC_CM_DIAG_WORD6_REG_DIAG6_BS_FSM_Pos (4UL)               /*!< DIAG6_BS_FSM (Bit 4)                                  */
+#define CMAC_CM_DIAG_WORD6_REG_DIAG6_BS_FSM_Msk (0x70UL)            /*!< DIAG6_BS_FSM (Bitfield-Mask: 0x07)                    */
+#define CMAC_CM_DIAG_WORD6_REG_DIAG6_FRAME_FSM_Pos (0UL)            /*!< DIAG6_FRAME_FSM (Bit 0)                               */
+#define CMAC_CM_DIAG_WORD6_REG_DIAG6_FRAME_FSM_Msk (0x7UL)          /*!< DIAG6_FRAME_FSM (Bitfield-Mask: 0x07)                 */
+/* ===================================================  CM_DIAG_WORD7_REG  =================================================== */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_CM_FIELD_4_VALID_Pos (31UL)    /*!< DIAG7_CM_FIELD_4_VALID (Bit 31)                       */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_CM_FIELD_4_VALID_Msk (0x80000000UL) /*!< DIAG7_CM_FIELD_4_VALID (Bitfield-Mask: 0x01)     */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_CM_FIELD_2_VALID_Pos (30UL)    /*!< DIAG7_CM_FIELD_2_VALID (Bit 30)                       */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_CM_FIELD_2_VALID_Msk (0x40000000UL) /*!< DIAG7_CM_FIELD_2_VALID (Bitfield-Mask: 0x01)     */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_CM_FIELD_1_VALID_Pos (29UL)    /*!< DIAG7_CM_FIELD_1_VALID (Bit 29)                       */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_CM_FIELD_1_VALID_Msk (0x20000000UL) /*!< DIAG7_CM_FIELD_1_VALID (Bitfield-Mask: 0x01)     */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_REGF_WR_P_Pos (28UL)           /*!< DIAG7_REGF_WR_P (Bit 28)                              */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_REGF_WR_P_Msk (0x10000000UL)   /*!< DIAG7_REGF_WR_P (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_REGF_RD_P_Pos (27UL)           /*!< DIAG7_REGF_RD_P (Bit 27)                              */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_REGF_RD_P_Msk (0x8000000UL)    /*!< DIAG7_REGF_RD_P (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_CM_BS_SMPL_ST_FST_RD_P_Pos (26UL) /*!< DIAG7_CM_BS_SMPL_ST_FST_RD_P (Bit 26)              */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_CM_BS_SMPL_ST_FST_RD_P_Msk (0x4000000UL) /*!< DIAG7_CM_BS_SMPL_ST_FST_RD_P (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_MEMCTRL_MCPU_IDLE_REQ_Pos (10UL) /*!< DIAG7_MEMCTRL_MCPU_IDLE_REQ (Bit 10)                */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_MEMCTRL_MCPU_IDLE_REQ_Msk (0x400UL) /*!< DIAG7_MEMCTRL_MCPU_IDLE_REQ (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_CRYPTO2MC_CS_Pos (6UL)         /*!< DIAG7_CRYPTO2MC_CS (Bit 6)                            */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_CRYPTO2MC_CS_Msk (0x40UL)      /*!< DIAG7_CRYPTO2MC_CS (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_MC2DMA_RDY_Pos (5UL)           /*!< DIAG7_MC2DMA_RDY (Bit 5)                              */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_MC2DMA_RDY_Msk (0x20UL)        /*!< DIAG7_MC2DMA_RDY (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_DMA2MC_CS_Pos (4UL)            /*!< DIAG7_DMA2MC_CS (Bit 4)                               */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_DMA2MC_CS_Msk (0x10UL)         /*!< DIAG7_DMA2MC_CS (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_ADDR_CYCLE_FOR_2_Pos (2UL)     /*!< DIAG7_ADDR_CYCLE_FOR_2 (Bit 2)                        */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_ADDR_CYCLE_FOR_2_Msk (0x4UL)   /*!< DIAG7_ADDR_CYCLE_FOR_2 (Bitfield-Mask: 0x01)          */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_ADDR_CYCLE_FOR_1_Pos (1UL)     /*!< DIAG7_ADDR_CYCLE_FOR_1 (Bit 1)                        */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_ADDR_CYCLE_FOR_1_Msk (0x2UL)   /*!< DIAG7_ADDR_CYCLE_FOR_1 (Bitfield-Mask: 0x01)          */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_ADDR_CYCLE_FOR_0_Pos (0UL)     /*!< DIAG7_ADDR_CYCLE_FOR_0 (Bit 0)                        */
+#define CMAC_CM_DIAG_WORD7_REG_DIAG7_ADDR_CYCLE_FOR_0_Msk (0x1UL)   /*!< DIAG7_ADDR_CYCLE_FOR_0 (Bitfield-Mask: 0x01)          */
+/* ===================================================  CM_DIAG_WORD8_REG  =================================================== */
+#define CMAC_CM_DIAG_WORD8_REG_DIAG8_EV1US_LL_TIMER1_EQ_Y_Pos (31UL) /*!< DIAG8_EV1US_LL_TIMER1_EQ_Y (Bit 31)                  */
+#define CMAC_CM_DIAG_WORD8_REG_DIAG8_EV1US_LL_TIMER1_EQ_Y_Msk (0x80000000UL) /*!< DIAG8_EV1US_LL_TIMER1_EQ_Y (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_WORD8_REG_DIAG8_EV1US_LL_TIMER1_EQ_X_Pos (30UL) /*!< DIAG8_EV1US_LL_TIMER1_EQ_X (Bit 30)                  */
+#define CMAC_CM_DIAG_WORD8_REG_DIAG8_EV1US_LL_TIMER1_EQ_X_Msk (0x40000000UL) /*!< DIAG8_EV1US_LL_TIMER1_EQ_X (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_WORD8_REG_DIAG8_EV1US_LL_TIMER1_36_10_EQ_Z_Pos (29UL) /*!< DIAG8_EV1US_LL_TIMER1_36_10_EQ_Z (Bit 29)      */
+#define CMAC_CM_DIAG_WORD8_REG_DIAG8_EV1US_LL_TIMER1_36_10_EQ_Z_Msk (0x20000000UL) /*!< DIAG8_EV1US_LL_TIMER1_36_10_EQ_Z (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_WORD8_REG_DIAG8_EV1US_LL_TIMER1_36_10_EQ_Y_Pos (28UL) /*!< DIAG8_EV1US_LL_TIMER1_36_10_EQ_Y (Bit 28)      */
+#define CMAC_CM_DIAG_WORD8_REG_DIAG8_EV1US_LL_TIMER1_36_10_EQ_Y_Msk (0x10000000UL) /*!< DIAG8_EV1US_LL_TIMER1_36_10_EQ_Y (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_WORD8_REG_DIAG8_EV1US_LL_TIMER1_36_10_EQ_X_Pos (27UL) /*!< DIAG8_EV1US_LL_TIMER1_36_10_EQ_X (Bit 27)      */
+#define CMAC_CM_DIAG_WORD8_REG_DIAG8_EV1US_LL_TIMER1_36_10_EQ_X_Msk (0x8000000UL) /*!< DIAG8_EV1US_LL_TIMER1_36_10_EQ_X (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_WORD8_REG_DIAG8_EV1US_LL_TIMER1_36_10_EQ_0_Pos (26UL) /*!< DIAG8_EV1US_LL_TIMER1_36_10_EQ_0 (Bit 26)      */
+#define CMAC_CM_DIAG_WORD8_REG_DIAG8_EV1US_LL_TIMER1_36_10_EQ_0_Msk (0x4000000UL) /*!< DIAG8_EV1US_LL_TIMER1_36_10_EQ_0 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_WORD8_REG_DIAG8_EV1US_LL_TIMER1_9_0_EQ_Y_Pos (25UL) /*!< DIAG8_EV1US_LL_TIMER1_9_0_EQ_Y (Bit 25)          */
+#define CMAC_CM_DIAG_WORD8_REG_DIAG8_EV1US_LL_TIMER1_9_0_EQ_Y_Msk (0x2000000UL) /*!< DIAG8_EV1US_LL_TIMER1_9_0_EQ_Y (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_WORD8_REG_DIAG8_EV1US_LL_TIMER1_9_0_EQ_X_Pos (24UL) /*!< DIAG8_EV1US_LL_TIMER1_9_0_EQ_X (Bit 24)          */
+#define CMAC_CM_DIAG_WORD8_REG_DIAG8_EV1US_LL_TIMER1_9_0_EQ_X_Msk (0x1000000UL) /*!< DIAG8_EV1US_LL_TIMER1_9_0_EQ_X (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_WORD8_REG_DIAG8_EV1US_LL_TIMER1_9_0_EQ_0_Pos (23UL) /*!< DIAG8_EV1US_LL_TIMER1_9_0_EQ_0 (Bit 23)          */
+#define CMAC_CM_DIAG_WORD8_REG_DIAG8_EV1US_LL_TIMER1_9_0_EQ_0_Msk (0x800000UL) /*!< DIAG8_EV1US_LL_TIMER1_9_0_EQ_0 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_WORD8_REG_DIAG8_LL_TIMER1_00_Pos (0UL)         /*!< DIAG8_LL_TIMER1_00 (Bit 0)                            */
+#define CMAC_CM_DIAG_WORD8_REG_DIAG8_LL_TIMER1_00_Msk (0x1UL)       /*!< DIAG8_LL_TIMER1_00 (Bitfield-Mask: 0x01)              */
+/* ===================================================  CM_DIAG_WORD9_REG  =================================================== */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_PDC2CMAC_IRQ_Pos (30UL)        /*!< DIAG9_PDC2CMAC_IRQ (Bit 30)                           */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_PDC2CMAC_IRQ_Msk (0x40000000UL) /*!< DIAG9_PDC2CMAC_IRQ (Bitfield-Mask: 0x01)             */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_XTAL32M_RDY_Pos (29UL)         /*!< DIAG9_XTAL32M_RDY (Bit 29)                            */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_XTAL32M_RDY_Msk (0x20000000UL) /*!< DIAG9_XTAL32M_RDY (Bitfield-Mask: 0x01)               */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_CMAC_SLP_TIMER_IRQ_Pos (28UL)  /*!< DIAG9_CMAC_SLP_TIMER_IRQ (Bit 28)                     */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_CMAC_SLP_TIMER_IRQ_Msk (0x10000000UL) /*!< DIAG9_CMAC_SLP_TIMER_IRQ (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_GEN_HW_IRQ_Pos (27UL)          /*!< DIAG9_GEN_HW_IRQ (Bit 27)                             */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_GEN_HW_IRQ_Msk (0x8000000UL)   /*!< DIAG9_GEN_HW_IRQ (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_FRAME_IRQ_Pos (26UL)           /*!< DIAG9_FRAME_IRQ (Bit 26)                              */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_FRAME_IRQ_Msk (0x4000000UL)    /*!< DIAG9_FRAME_IRQ (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_CALLBACK_IRQ_Pos (25UL)        /*!< DIAG9_CALLBACK_IRQ (Bit 25)                           */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_CALLBACK_IRQ_Msk (0x2000000UL) /*!< DIAG9_CALLBACK_IRQ (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_FIELD_IRQ_Pos (24UL)           /*!< DIAG9_FIELD_IRQ (Bit 24)                              */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_FIELD_IRQ_Msk (0x1000000UL)    /*!< DIAG9_FIELD_IRQ (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_CMAC2SYS_IRQ_Pos (23UL)        /*!< DIAG9_CMAC2SYS_IRQ (Bit 23)                           */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_CMAC2SYS_IRQ_Msk (0x800000UL)  /*!< DIAG9_CMAC2SYS_IRQ (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_22_Pos (22UL)        /*!< DIAG9_EXCEPTION_22 (Bit 22)                           */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_22_Msk (0x400000UL)  /*!< DIAG9_EXCEPTION_22 (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_21_Pos (21UL)        /*!< DIAG9_EXCEPTION_21 (Bit 21)                           */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_21_Msk (0x200000UL)  /*!< DIAG9_EXCEPTION_21 (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_20_Pos (20UL)        /*!< DIAG9_EXCEPTION_20 (Bit 20)                           */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_20_Msk (0x100000UL)  /*!< DIAG9_EXCEPTION_20 (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_19_Pos (19UL)        /*!< DIAG9_EXCEPTION_19 (Bit 19)                           */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_19_Msk (0x80000UL)   /*!< DIAG9_EXCEPTION_19 (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_18_Pos (18UL)        /*!< DIAG9_EXCEPTION_18 (Bit 18)                           */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_18_Msk (0x40000UL)   /*!< DIAG9_EXCEPTION_18 (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_17_Pos (17UL)        /*!< DIAG9_EXCEPTION_17 (Bit 17)                           */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_17_Msk (0x20000UL)   /*!< DIAG9_EXCEPTION_17 (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_16_Pos (16UL)        /*!< DIAG9_EXCEPTION_16 (Bit 16)                           */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_16_Msk (0x10000UL)   /*!< DIAG9_EXCEPTION_16 (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_15_Pos (15UL)        /*!< DIAG9_EXCEPTION_15 (Bit 15)                           */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_15_Msk (0x8000UL)    /*!< DIAG9_EXCEPTION_15 (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_14_Pos (14UL)        /*!< DIAG9_EXCEPTION_14 (Bit 14)                           */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_14_Msk (0x4000UL)    /*!< DIAG9_EXCEPTION_14 (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_13_Pos (13UL)        /*!< DIAG9_EXCEPTION_13 (Bit 13)                           */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_13_Msk (0x2000UL)    /*!< DIAG9_EXCEPTION_13 (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_12_Pos (12UL)        /*!< DIAG9_EXCEPTION_12 (Bit 12)                           */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_12_Msk (0x1000UL)    /*!< DIAG9_EXCEPTION_12 (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_11_Pos (11UL)        /*!< DIAG9_EXCEPTION_11 (Bit 11)                           */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_11_Msk (0x800UL)     /*!< DIAG9_EXCEPTION_11 (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_10_Pos (10UL)        /*!< DIAG9_EXCEPTION_10 (Bit 10)                           */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_10_Msk (0x400UL)     /*!< DIAG9_EXCEPTION_10 (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_9_Pos (9UL)          /*!< DIAG9_EXCEPTION_9 (Bit 9)                             */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_9_Msk (0x200UL)      /*!< DIAG9_EXCEPTION_9 (Bitfield-Mask: 0x01)               */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_8_Pos (8UL)          /*!< DIAG9_EXCEPTION_8 (Bit 8)                             */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_8_Msk (0x100UL)      /*!< DIAG9_EXCEPTION_8 (Bitfield-Mask: 0x01)               */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_7_Pos (7UL)          /*!< DIAG9_EXCEPTION_7 (Bit 7)                             */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_7_Msk (0x80UL)       /*!< DIAG9_EXCEPTION_7 (Bitfield-Mask: 0x01)               */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_6_Pos (6UL)          /*!< DIAG9_EXCEPTION_6 (Bit 6)                             */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_6_Msk (0x40UL)       /*!< DIAG9_EXCEPTION_6 (Bitfield-Mask: 0x01)               */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_5_Pos (5UL)          /*!< DIAG9_EXCEPTION_5 (Bit 5)                             */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_5_Msk (0x20UL)       /*!< DIAG9_EXCEPTION_5 (Bitfield-Mask: 0x01)               */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_4_Pos (4UL)          /*!< DIAG9_EXCEPTION_4 (Bit 4)                             */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_4_Msk (0x10UL)       /*!< DIAG9_EXCEPTION_4 (Bitfield-Mask: 0x01)               */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_3_Pos (3UL)          /*!< DIAG9_EXCEPTION_3 (Bit 3)                             */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_3_Msk (0x8UL)        /*!< DIAG9_EXCEPTION_3 (Bitfield-Mask: 0x01)               */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_2_Pos (2UL)          /*!< DIAG9_EXCEPTION_2 (Bit 2)                             */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_2_Msk (0x4UL)        /*!< DIAG9_EXCEPTION_2 (Bitfield-Mask: 0x01)               */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_1_Pos (1UL)          /*!< DIAG9_EXCEPTION_1 (Bit 1)                             */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_1_Msk (0x2UL)        /*!< DIAG9_EXCEPTION_1 (Bitfield-Mask: 0x01)               */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_0_Pos (0UL)          /*!< DIAG9_EXCEPTION_0 (Bit 0)                             */
+#define CMAC_CM_DIAG_WORD9_REG_DIAG9_EXCEPTION_0_Msk (0x1UL)        /*!< DIAG9_EXCEPTION_0 (Bitfield-Mask: 0x01)               */
+/* ====================================================  CM_DMA_STAT_REG  ==================================================== */
+#define CMAC_CM_DMA_STAT_REG_DMA_BYTES_Pos (20UL)                   /*!< DMA_BYTES (Bit 20)                                    */
+#define CMAC_CM_DMA_STAT_REG_DMA_BYTES_Msk (0x1ff00000UL)           /*!< DMA_BYTES (Bitfield-Mask: 0x1ff)                      */
+#define CMAC_CM_DMA_STAT_REG_DMA_BUFFER_PTR_Pos (0UL)               /*!< DMA_BUFFER_PTR (Bit 0)                                */
+#define CMAC_CM_DMA_STAT_REG_DMA_BUFFER_PTR_Msk (0x3ffffUL)         /*!< DMA_BUFFER_PTR (Bitfield-Mask: 0x3ffff)               */
+/* ===================================================  CM_ERROR_DIS_REG  ==================================================== */
+#define CMAC_CM_ERROR_DIS_REG_CM_MCPU_LOCKUP_Pos (31UL)             /*!< CM_MCPU_LOCKUP (Bit 31)                               */
+#define CMAC_CM_ERROR_DIS_REG_CM_MCPU_LOCKUP_Msk (0x80000000UL)     /*!< CM_MCPU_LOCKUP (Bitfield-Mask: 0x01)                  */
+#define CMAC_CM_ERROR_DIS_REG_CM_REGFILE_ERR_Pos (30UL)             /*!< CM_REGFILE_ERR (Bit 30)                               */
+#define CMAC_CM_ERROR_DIS_REG_CM_REGFILE_ERR_Msk (0x40000000UL)     /*!< CM_REGFILE_ERR (Bitfield-Mask: 0x01)                  */
+#define CMAC_CM_ERROR_DIS_REG_CM_CRYPTO_ERR_Pos (29UL)              /*!< CM_CRYPTO_ERR (Bit 29)                                */
+#define CMAC_CM_ERROR_DIS_REG_CM_CRYPTO_ERR_Msk (0x20000000UL)      /*!< CM_CRYPTO_ERR (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_ERROR_DIS_REG_CM_SYSMEMCTRL_ERR_Pos (28UL)          /*!< CM_SYSMEMCTRL_ERR (Bit 28)                            */
+#define CMAC_CM_ERROR_DIS_REG_CM_SYSMEMCTRL_ERR_Msk (0x10000000UL)  /*!< CM_SYSMEMCTRL_ERR (Bitfield-Mask: 0x01)               */
+#define CMAC_CM_ERROR_DIS_REG_CM_PHY_ERR_Pos (27UL)                 /*!< CM_PHY_ERR (Bit 27)                                   */
+#define CMAC_CM_ERROR_DIS_REG_CM_PHY_ERR_Msk (0x8000000UL)          /*!< CM_PHY_ERR (Bitfield-Mask: 0x01)                      */
+#define CMAC_CM_ERROR_DIS_REG_CM_FPGA_ERR_Pos (25UL)                /*!< CM_FPGA_ERR (Bit 25)                                  */
+#define CMAC_CM_ERROR_DIS_REG_CM_FPGA_ERR_Msk (0x2000000UL)         /*!< CM_FPGA_ERR (Bitfield-Mask: 0x01)                     */
+#define CMAC_CM_ERROR_DIS_REG_CM_MONITOR_ERR_Pos (11UL)             /*!< CM_MONITOR_ERR (Bit 11)                               */
+#define CMAC_CM_ERROR_DIS_REG_CM_MONITOR_ERR_Msk (0x800UL)          /*!< CM_MONITOR_ERR (Bitfield-Mask: 0x01)                  */
+#define CMAC_CM_ERROR_DIS_REG_CM_CORR_ERR_Pos (10UL)                /*!< CM_CORR_ERR (Bit 10)                                  */
+#define CMAC_CM_ERROR_DIS_REG_CM_CORR_ERR_Msk (0x400UL)             /*!< CM_CORR_ERR (Bitfield-Mask: 0x01)                     */
+#define CMAC_CM_ERROR_DIS_REG_CM_TS_ERR_Pos (9UL)                   /*!< CM_TS_ERR (Bit 9)                                     */
+#define CMAC_CM_ERROR_DIS_REG_CM_TS_ERR_Msk (0x200UL)               /*!< CM_TS_ERR (Bitfield-Mask: 0x01)                       */
+#define CMAC_CM_ERROR_DIS_REG_CM_DMA_BUF_ERR_Pos (8UL)              /*!< CM_DMA_BUF_ERR (Bit 8)                                */
+#define CMAC_CM_ERROR_DIS_REG_CM_DMA_BUF_ERR_Msk (0x100UL)          /*!< CM_DMA_BUF_ERR (Bitfield-Mask: 0x01)                  */
+#define CMAC_CM_ERROR_DIS_REG_CM_DMA_ERR_Pos (7UL)                  /*!< CM_DMA_ERR (Bit 7)                                    */
+#define CMAC_CM_ERROR_DIS_REG_CM_DMA_ERR_Msk (0x80UL)               /*!< CM_DMA_ERR (Bitfield-Mask: 0x01)                      */
+#define CMAC_CM_ERROR_DIS_REG_CM_PHY_BUSY_RDY_ERR_Pos (6UL)         /*!< CM_PHY_BUSY_RDY_ERR (Bit 6)                           */
+#define CMAC_CM_ERROR_DIS_REG_CM_PHY_BUSY_RDY_ERR_Msk (0x40UL)      /*!< CM_PHY_BUSY_RDY_ERR (Bitfield-Mask: 0x01)             */
+#define CMAC_CM_ERROR_DIS_REG_CM_BS_SMPL_ERR_Pos (5UL)              /*!< CM_BS_SMPL_ERR (Bit 5)                                */
+#define CMAC_CM_ERROR_DIS_REG_CM_BS_SMPL_ERR_Msk (0x20UL)           /*!< CM_BS_SMPL_ERR (Bitfield-Mask: 0x01)                  */
+#define CMAC_CM_ERROR_DIS_REG_CM_CALLBACK_ERR_Pos (4UL)             /*!< CM_CALLBACK_ERR (Bit 4)                               */
+#define CMAC_CM_ERROR_DIS_REG_CM_CALLBACK_ERR_Msk (0x10UL)          /*!< CM_CALLBACK_ERR (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_ERROR_DIS_REG_CM_FRAME_ERR_Pos (3UL)                /*!< CM_FRAME_ERR (Bit 3)                                  */
+#define CMAC_CM_ERROR_DIS_REG_CM_FRAME_ERR_Msk (0x8UL)              /*!< CM_FRAME_ERR (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_ERROR_DIS_REG_CM_FIELD2_ERR_Pos (2UL)               /*!< CM_FIELD2_ERR (Bit 2)                                 */
+#define CMAC_CM_ERROR_DIS_REG_CM_FIELD2_ERR_Msk (0x4UL)             /*!< CM_FIELD2_ERR (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_ERROR_DIS_REG_CM_FIELD1_ERR_Pos (1UL)               /*!< CM_FIELD1_ERR (Bit 1)                                 */
+#define CMAC_CM_ERROR_DIS_REG_CM_FIELD1_ERR_Msk (0x2UL)             /*!< CM_FIELD1_ERR (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_ERROR_DIS_REG_CM_CLK_EV_ERR_Pos (0UL)               /*!< CM_CLK_EV_ERR (Bit 0)                                 */
+#define CMAC_CM_ERROR_DIS_REG_CM_CLK_EV_ERR_Msk (0x1UL)             /*!< CM_CLK_EV_ERR (Bitfield-Mask: 0x01)                   */
+/* =====================================================  CM_ERROR_REG  ====================================================== */
+#define CMAC_CM_ERROR_REG_CM_MCPU_LOCKUP_Pos (31UL)                 /*!< CM_MCPU_LOCKUP (Bit 31)                               */
+#define CMAC_CM_ERROR_REG_CM_MCPU_LOCKUP_Msk (0x80000000UL)         /*!< CM_MCPU_LOCKUP (Bitfield-Mask: 0x01)                  */
+#define CMAC_CM_ERROR_REG_CM_REGFILE_ERR_Pos (30UL)                 /*!< CM_REGFILE_ERR (Bit 30)                               */
+#define CMAC_CM_ERROR_REG_CM_REGFILE_ERR_Msk (0x40000000UL)         /*!< CM_REGFILE_ERR (Bitfield-Mask: 0x01)                  */
+#define CMAC_CM_ERROR_REG_CM_CRYPTO_ERR_Pos (29UL)                  /*!< CM_CRYPTO_ERR (Bit 29)                                */
+#define CMAC_CM_ERROR_REG_CM_CRYPTO_ERR_Msk (0x20000000UL)          /*!< CM_CRYPTO_ERR (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_ERROR_REG_CM_SYSMEMCTRL_ERR_Pos (28UL)              /*!< CM_SYSMEMCTRL_ERR (Bit 28)                            */
+#define CMAC_CM_ERROR_REG_CM_SYSMEMCTRL_ERR_Msk (0x10000000UL)      /*!< CM_SYSMEMCTRL_ERR (Bitfield-Mask: 0x01)               */
+#define CMAC_CM_ERROR_REG_CM_PHY_ERR_Pos  (27UL)                    /*!< CM_PHY_ERR (Bit 27)                                   */
+#define CMAC_CM_ERROR_REG_CM_PHY_ERR_Msk  (0x8000000UL)             /*!< CM_PHY_ERR (Bitfield-Mask: 0x01)                      */
+#define CMAC_CM_ERROR_REG_CM_WDOG_EXPIRE_ERR_Pos (26UL)             /*!< CM_WDOG_EXPIRE_ERR (Bit 26)                           */
+#define CMAC_CM_ERROR_REG_CM_WDOG_EXPIRE_ERR_Msk (0x4000000UL)      /*!< CM_WDOG_EXPIRE_ERR (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_ERROR_REG_CM_FPGA_ERR_Pos (25UL)                    /*!< CM_FPGA_ERR (Bit 25)                                  */
+#define CMAC_CM_ERROR_REG_CM_FPGA_ERR_Msk (0x2000000UL)             /*!< CM_FPGA_ERR (Bitfield-Mask: 0x01)                     */
+#define CMAC_CM_ERROR_REG_CM_MONITOR_ERR_Pos (11UL)                 /*!< CM_MONITOR_ERR (Bit 11)                               */
+#define CMAC_CM_ERROR_REG_CM_MONITOR_ERR_Msk (0x800UL)              /*!< CM_MONITOR_ERR (Bitfield-Mask: 0x01)                  */
+#define CMAC_CM_ERROR_REG_CM_CORR_ERR_Pos (10UL)                    /*!< CM_CORR_ERR (Bit 10)                                  */
+#define CMAC_CM_ERROR_REG_CM_CORR_ERR_Msk (0x400UL)                 /*!< CM_CORR_ERR (Bitfield-Mask: 0x01)                     */
+#define CMAC_CM_ERROR_REG_CM_TS_ERR_Pos   (9UL)                     /*!< CM_TS_ERR (Bit 9)                                     */
+#define CMAC_CM_ERROR_REG_CM_TS_ERR_Msk   (0x200UL)                 /*!< CM_TS_ERR (Bitfield-Mask: 0x01)                       */
+#define CMAC_CM_ERROR_REG_CM_DMA_BUF_ERR_Pos (8UL)                  /*!< CM_DMA_BUF_ERR (Bit 8)                                */
+#define CMAC_CM_ERROR_REG_CM_DMA_BUF_ERR_Msk (0x100UL)              /*!< CM_DMA_BUF_ERR (Bitfield-Mask: 0x01)                  */
+#define CMAC_CM_ERROR_REG_CM_DMA_ERR_Pos  (7UL)                     /*!< CM_DMA_ERR (Bit 7)                                    */
+#define CMAC_CM_ERROR_REG_CM_DMA_ERR_Msk  (0x80UL)                  /*!< CM_DMA_ERR (Bitfield-Mask: 0x01)                      */
+#define CMAC_CM_ERROR_REG_CM_PHY_BUSY_RDY_ERR_Pos (6UL)             /*!< CM_PHY_BUSY_RDY_ERR (Bit 6)                           */
+#define CMAC_CM_ERROR_REG_CM_PHY_BUSY_RDY_ERR_Msk (0x40UL)          /*!< CM_PHY_BUSY_RDY_ERR (Bitfield-Mask: 0x01)             */
+#define CMAC_CM_ERROR_REG_CM_BS_SMPL_ERR_Pos (5UL)                  /*!< CM_BS_SMPL_ERR (Bit 5)                                */
+#define CMAC_CM_ERROR_REG_CM_BS_SMPL_ERR_Msk (0x20UL)               /*!< CM_BS_SMPL_ERR (Bitfield-Mask: 0x01)                  */
+#define CMAC_CM_ERROR_REG_CM_CALLBACK_ERR_Pos (4UL)                 /*!< CM_CALLBACK_ERR (Bit 4)                               */
+#define CMAC_CM_ERROR_REG_CM_CALLBACK_ERR_Msk (0x10UL)              /*!< CM_CALLBACK_ERR (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_ERROR_REG_CM_FRAME_ERR_Pos (3UL)                    /*!< CM_FRAME_ERR (Bit 3)                                  */
+#define CMAC_CM_ERROR_REG_CM_FRAME_ERR_Msk (0x8UL)                  /*!< CM_FRAME_ERR (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_ERROR_REG_CM_FIELD2_ERR_Pos (2UL)                   /*!< CM_FIELD2_ERR (Bit 2)                                 */
+#define CMAC_CM_ERROR_REG_CM_FIELD2_ERR_Msk (0x4UL)                 /*!< CM_FIELD2_ERR (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_ERROR_REG_CM_FIELD1_ERR_Pos (1UL)                   /*!< CM_FIELD1_ERR (Bit 1)                                 */
+#define CMAC_CM_ERROR_REG_CM_FIELD1_ERR_Msk (0x2UL)                 /*!< CM_FIELD1_ERR (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_ERROR_REG_CM_CLK_EV_ERR_Pos (0UL)                   /*!< CM_CLK_EV_ERR (Bit 0)                                 */
+#define CMAC_CM_ERROR_REG_CM_CLK_EV_ERR_Msk (0x1UL)                 /*!< CM_CLK_EV_ERR (Bitfield-Mask: 0x01)                   */
+/* ===================================================  CM_EV_LATCHED_REG  =================================================== */
+#define CMAC_CM_EV_LATCHED_REG_EV1C_LP_CLK_NEGEDGE_Pos (10UL)       /*!< EV1C_LP_CLK_NEGEDGE (Bit 10)                          */
+#define CMAC_CM_EV_LATCHED_REG_EV1C_LP_CLK_NEGEDGE_Msk (0x400UL)    /*!< EV1C_LP_CLK_NEGEDGE (Bitfield-Mask: 0x01)             */
+#define CMAC_CM_EV_LATCHED_REG_EV1C_LP_CLK_POSEDGE_Pos (9UL)        /*!< EV1C_LP_CLK_POSEDGE (Bit 9)                           */
+#define CMAC_CM_EV_LATCHED_REG_EV1C_LP_CLK_POSEDGE_Msk (0x200UL)    /*!< EV1C_LP_CLK_POSEDGE (Bitfield-Mask: 0x01)             */
+#define CMAC_CM_EV_LATCHED_REG_EV_WINDOW_CNT_THR_Pos (8UL)          /*!< EV_WINDOW_CNT_THR (Bit 8)                             */
+#define CMAC_CM_EV_LATCHED_REG_EV_WINDOW_CNT_THR_Msk (0x100UL)      /*!< EV_WINDOW_CNT_THR (Bitfield-Mask: 0x01)               */
+#define CMAC_CM_EV_LATCHED_REG_EV1C_CLK_EV_Pos (7UL)                /*!< EV1C_CLK_EV (Bit 7)                                   */
+#define CMAC_CM_EV_LATCHED_REG_EV1C_CLK_EV_Msk (0x80UL)             /*!< EV1C_CLK_EV (Bitfield-Mask: 0x01)                     */
+#define CMAC_CM_EV_LATCHED_REG_EV1C_CLK_1US_X7_Pos (6UL)            /*!< EV1C_CLK_1US_X7 (Bit 6)                               */
+#define CMAC_CM_EV_LATCHED_REG_EV1C_CLK_1US_X7_Msk (0x40UL)         /*!< EV1C_CLK_1US_X7 (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_EV_LATCHED_REG_EV1C_CLK_1US_X6_Pos (5UL)            /*!< EV1C_CLK_1US_X6 (Bit 5)                               */
+#define CMAC_CM_EV_LATCHED_REG_EV1C_CLK_1US_X6_Msk (0x20UL)         /*!< EV1C_CLK_1US_X6 (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_EV_LATCHED_REG_EV1C_CLK_1US_X5_Pos (4UL)            /*!< EV1C_CLK_1US_X5 (Bit 4)                               */
+#define CMAC_CM_EV_LATCHED_REG_EV1C_CLK_1US_X5_Msk (0x10UL)         /*!< EV1C_CLK_1US_X5 (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_EV_LATCHED_REG_EV1C_CLK_1US_X4_Pos (3UL)            /*!< EV1C_CLK_1US_X4 (Bit 3)                               */
+#define CMAC_CM_EV_LATCHED_REG_EV1C_CLK_1US_X4_Msk (0x8UL)          /*!< EV1C_CLK_1US_X4 (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_EV_LATCHED_REG_EV1C_CLK_1US_X3_Pos (2UL)            /*!< EV1C_CLK_1US_X3 (Bit 2)                               */
+#define CMAC_CM_EV_LATCHED_REG_EV1C_CLK_1US_X3_Msk (0x4UL)          /*!< EV1C_CLK_1US_X3 (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_EV_LATCHED_REG_EV1C_CLK_1US_X2_Pos (1UL)            /*!< EV1C_CLK_1US_X2 (Bit 1)                               */
+#define CMAC_CM_EV_LATCHED_REG_EV1C_CLK_1US_X2_Msk (0x2UL)          /*!< EV1C_CLK_1US_X2 (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_EV_LATCHED_REG_EV1C_CLK_1US_X1_Pos (0UL)            /*!< EV1C_CLK_1US_X1 (Bit 0)                               */
+#define CMAC_CM_EV_LATCHED_REG_EV1C_CLK_1US_X1_Msk (0x1UL)          /*!< EV1C_CLK_1US_X1 (Bitfield-Mask: 0x01)                 */
+/* ===================================================  CM_EV_LINKUP_REG  ==================================================== */
+#define CMAC_CM_EV_LINKUP_REG_LU_PHY_TO_IDLE_2_EXC_Pos (8UL)        /*!< LU_PHY_TO_IDLE_2_EXC (Bit 8)                          */
+#define CMAC_CM_EV_LINKUP_REG_LU_PHY_TO_IDLE_2_EXC_Msk (0x100UL)    /*!< LU_PHY_TO_IDLE_2_EXC (Bitfield-Mask: 0x01)            */
+#define CMAC_CM_EV_LINKUP_REG_LU_PHY_TO_IDLE_2_NONE_Pos (7UL)       /*!< LU_PHY_TO_IDLE_2_NONE (Bit 7)                         */
+#define CMAC_CM_EV_LINKUP_REG_LU_PHY_TO_IDLE_2_NONE_Msk (0x80UL)    /*!< LU_PHY_TO_IDLE_2_NONE (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_EV_LINKUP_REG_LU_CORR_TMR_LD_2_TMR1_36_10_EQ_Z_Pos (6UL) /*!< LU_CORR_TMR_LD_2_TMR1_36_10_EQ_Z (Bit 6)         */
+#define CMAC_CM_EV_LINKUP_REG_LU_CORR_TMR_LD_2_TMR1_36_10_EQ_Z_Msk (0x40UL) /*!< LU_CORR_TMR_LD_2_TMR1_36_10_EQ_Z (Bitfield-Mask: 0x01) */
+#define CMAC_CM_EV_LINKUP_REG_LU_CORR_TMR_LD_2_CORR_START_Pos (5UL) /*!< LU_CORR_TMR_LD_2_CORR_START (Bit 5)                   */
+#define CMAC_CM_EV_LINKUP_REG_LU_CORR_TMR_LD_2_CORR_START_Msk (0x20UL) /*!< LU_CORR_TMR_LD_2_CORR_START (Bitfield-Mask: 0x01)  */
+#define CMAC_CM_EV_LINKUP_REG_LU_FRAME_START_2_TMR1_9_0_EQ_X_Pos (4UL) /*!< LU_FRAME_START_2_TMR1_9_0_EQ_X (Bit 4)             */
+#define CMAC_CM_EV_LINKUP_REG_LU_FRAME_START_2_TMR1_9_0_EQ_X_Msk (0x10UL) /*!< LU_FRAME_START_2_TMR1_9_0_EQ_X (Bitfield-Mask: 0x01) */
+#define CMAC_CM_EV_LINKUP_REG_LU_FRAME_START_2_TMR1_9_0_EQ_0_Pos (3UL) /*!< LU_FRAME_START_2_TMR1_9_0_EQ_0 (Bit 3)             */
+#define CMAC_CM_EV_LINKUP_REG_LU_FRAME_START_2_TMR1_9_0_EQ_0_Msk (0x8UL) /*!< LU_FRAME_START_2_TMR1_9_0_EQ_0 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_EV_LINKUP_REG_LU_FRAME_START_2_PHY_TO_IDLE_Pos (2UL) /*!< LU_FRAME_START_2_PHY_TO_IDLE (Bit 2)                 */
+#define CMAC_CM_EV_LINKUP_REG_LU_FRAME_START_2_PHY_TO_IDLE_Msk (0x4UL) /*!< LU_FRAME_START_2_PHY_TO_IDLE (Bitfield-Mask: 0x01) */
+#define CMAC_CM_EV_LINKUP_REG_LU_FRAME_START_2_ASAP_Pos (1UL)       /*!< LU_FRAME_START_2_ASAP (Bit 1)                         */
+#define CMAC_CM_EV_LINKUP_REG_LU_FRAME_START_2_ASAP_Msk (0x2UL)     /*!< LU_FRAME_START_2_ASAP (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_EV_LINKUP_REG_LU_FRAME_START_2_NONE_Pos (0UL)       /*!< LU_FRAME_START_2_NONE (Bit 0)                         */
+#define CMAC_CM_EV_LINKUP_REG_LU_FRAME_START_2_NONE_Msk (0x1UL)     /*!< LU_FRAME_START_2_NONE (Bitfield-Mask: 0x01)           */
+/* =====================================================  CM_EV_SET_REG  ===================================================== */
+#define CMAC_CM_EV_SET_REG_EV1C_CMAC2SYS_IRQ_CLR_Pos (16UL)         /*!< EV1C_CMAC2SYS_IRQ_CLR (Bit 16)                        */
+#define CMAC_CM_EV_SET_REG_EV1C_CMAC2SYS_IRQ_CLR_Msk (0x10000UL)    /*!< EV1C_CMAC2SYS_IRQ_CLR (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_EV_SET_REG_EV1C_RDY4BS_FORCE_0_CLR_Pos (15UL)       /*!< EV1C_RDY4BS_FORCE_0_CLR (Bit 15)                      */
+#define CMAC_CM_EV_SET_REG_EV1C_RDY4BS_FORCE_0_CLR_Msk (0x8000UL)   /*!< EV1C_RDY4BS_FORCE_0_CLR (Bitfield-Mask: 0x01)         */
+#define CMAC_CM_EV_SET_REG_EV1C_RDY4BS_FORCE_0_SET_Pos (14UL)       /*!< EV1C_RDY4BS_FORCE_0_SET (Bit 14)                      */
+#define CMAC_CM_EV_SET_REG_EV1C_RDY4BS_FORCE_0_SET_Msk (0x4000UL)   /*!< EV1C_RDY4BS_FORCE_0_SET (Bitfield-Mask: 0x01)         */
+#define CMAC_CM_EV_SET_REG_EV1C_CALLBACK_VALID_CLR_Pos (13UL)       /*!< EV1C_CALLBACK_VALID_CLR (Bit 13)                      */
+#define CMAC_CM_EV_SET_REG_EV1C_CALLBACK_VALID_CLR_Msk (0x2000UL)   /*!< EV1C_CALLBACK_VALID_CLR (Bitfield-Mask: 0x01)         */
+#define CMAC_CM_EV_SET_REG_EV1C_CALLBACK_VALID_SET_Pos (12UL)       /*!< EV1C_CALLBACK_VALID_SET (Bit 12)                      */
+#define CMAC_CM_EV_SET_REG_EV1C_CALLBACK_VALID_SET_Msk (0x1000UL)   /*!< EV1C_CALLBACK_VALID_SET (Bitfield-Mask: 0x01)         */
+#define CMAC_CM_EV_SET_REG_EV1C_FIELD_TOP_LAST_SET_Pos (11UL)       /*!< EV1C_FIELD_TOP_LAST_SET (Bit 11)                      */
+#define CMAC_CM_EV_SET_REG_EV1C_FIELD_TOP_LAST_SET_Msk (0x800UL)    /*!< EV1C_FIELD_TOP_LAST_SET (Bitfield-Mask: 0x01)         */
+#define CMAC_CM_EV_SET_REG_EV1C_SW_LLC_3_Pos (10UL)                 /*!< EV1C_SW_LLC_3 (Bit 10)                                */
+#define CMAC_CM_EV_SET_REG_EV1C_SW_LLC_3_Msk (0x400UL)              /*!< EV1C_SW_LLC_3 (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_EV_SET_REG_EV1C_SW_LLC_2_Pos (9UL)                  /*!< EV1C_SW_LLC_2 (Bit 9)                                 */
+#define CMAC_CM_EV_SET_REG_EV1C_SW_LLC_2_Msk (0x200UL)              /*!< EV1C_SW_LLC_2 (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_EV_SET_REG_EV1C_SW_LLC_1_Pos (8UL)                  /*!< EV1C_SW_LLC_1 (Bit 8)                                 */
+#define CMAC_CM_EV_SET_REG_EV1C_SW_LLC_1_Msk (0x100UL)              /*!< EV1C_SW_LLC_1 (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_EV_SET_REG_EV1C_SW_MAC_Pos (7UL)                    /*!< EV1C_SW_MAC (Bit 7)                                   */
+#define CMAC_CM_EV_SET_REG_EV1C_SW_MAC_Msk (0x80UL)                 /*!< EV1C_SW_MAC (Bitfield-Mask: 0x01)                     */
+#define CMAC_CM_EV_SET_REG_EV_TS1_TRIGGER_Pos (6UL)                 /*!< EV_TS1_TRIGGER (Bit 6)                                */
+#define CMAC_CM_EV_SET_REG_EV_TS1_TRIGGER_Msk (0x40UL)              /*!< EV_TS1_TRIGGER (Bitfield-Mask: 0x01)                  */
+#define CMAC_CM_EV_SET_REG_EV1C_TS1_TRIGGER_Pos (5UL)               /*!< EV1C_TS1_TRIGGER (Bit 5)                              */
+#define CMAC_CM_EV_SET_REG_EV1C_TS1_TRIGGER_Msk (0x20UL)            /*!< EV1C_TS1_TRIGGER (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_EV_SET_REG_EV_CRYPTO_START_Pos (4UL)                /*!< EV_CRYPTO_START (Bit 4)                               */
+#define CMAC_CM_EV_SET_REG_EV_CRYPTO_START_Msk (0x10UL)             /*!< EV_CRYPTO_START (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_EV_SET_REG_EV1C_BS_CLEAR_Pos (3UL)                  /*!< EV1C_BS_CLEAR (Bit 3)                                 */
+#define CMAC_CM_EV_SET_REG_EV1C_BS_CLEAR_Msk (0x8UL)                /*!< EV1C_BS_CLEAR (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_EV_SET_REG_EV1C_BS_STOP_Pos (2UL)                   /*!< EV1C_BS_STOP (Bit 2)                                  */
+#define CMAC_CM_EV_SET_REG_EV1C_BS_STOP_Msk (0x4UL)                 /*!< EV1C_BS_STOP (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_EV_SET_REG_EV1US_FRAME_START_Pos (1UL)              /*!< EV1US_FRAME_START (Bit 1)                             */
+#define CMAC_CM_EV_SET_REG_EV1US_FRAME_START_Msk (0x2UL)            /*!< EV1US_FRAME_START (Bitfield-Mask: 0x01)               */
+#define CMAC_CM_EV_SET_REG_EV1C_CMAC2SYS_IRQ_SET_Pos (0UL)          /*!< EV1C_CMAC2SYS_IRQ_SET (Bit 0)                         */
+#define CMAC_CM_EV_SET_REG_EV1C_CMAC2SYS_IRQ_SET_Msk (0x1UL)        /*!< EV1C_CMAC2SYS_IRQ_SET (Bitfield-Mask: 0x01)           */
+/* ====================================================  CM_EXC_DIS_REG  ===================================================== */
+#define CMAC_CM_EXC_DIS_REG_EXC_SWD_DETACH_Pos (13UL)               /*!< EXC_SWD_DETACH (Bit 13)                               */
+#define CMAC_CM_EXC_DIS_REG_EXC_SWD_DETACH_Msk (0x2000UL)           /*!< EXC_SWD_DETACH (Bitfield-Mask: 0x01)                  */
+#define CMAC_CM_EXC_DIS_REG_EXC_COEX_Pos  (12UL)                    /*!< EXC_COEX (Bit 12)                                     */
+#define CMAC_CM_EXC_DIS_REG_EXC_COEX_Msk  (0x1000UL)                /*!< EXC_COEX (Bitfield-Mask: 0x01)                        */
+#define CMAC_CM_EXC_DIS_REG_EXC_PHY_Pos   (11UL)                    /*!< EXC_PHY (Bit 11)                                      */
+#define CMAC_CM_EXC_DIS_REG_EXC_PHY_Msk   (0x800UL)                 /*!< EXC_PHY (Bitfield-Mask: 0x01)                         */
+#define CMAC_CM_EXC_DIS_REG_EXC_XTAL_RDY_Pos (10UL)                 /*!< EXC_XTAL_RDY (Bit 10)                                 */
+#define CMAC_CM_EXC_DIS_REG_EXC_XTAL_RDY_Msk (0x400UL)              /*!< EXC_XTAL_RDY (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_EXC_DIS_REG_EXC_BS_STOP_Pos (7UL)                   /*!< EXC_BS_STOP (Bit 7)                                   */
+#define CMAC_CM_EXC_DIS_REG_EXC_BS_STOP_Msk (0x80UL)                /*!< EXC_BS_STOP (Bitfield-Mask: 0x01)                     */
+#define CMAC_CM_EXC_DIS_REG_EXC_FRAME_START_Pos (6UL)               /*!< EXC_FRAME_START (Bit 6)                               */
+#define CMAC_CM_EXC_DIS_REG_EXC_FRAME_START_Msk (0x40UL)            /*!< EXC_FRAME_START (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_EXC_DIS_REG_EXC_CPU_ERROR_Pos (2UL)                 /*!< EXC_CPU_ERROR (Bit 2)                                 */
+#define CMAC_CM_EXC_DIS_REG_EXC_CPU_ERROR_Msk (0x4UL)               /*!< EXC_CPU_ERROR (Bitfield-Mask: 0x01)                   */
+/* ====================================================  CM_EXC_STAT_REG  ==================================================== */
+#define CMAC_CM_EXC_STAT_REG_EXC_SYS2CMAC_Pos (22UL)                /*!< EXC_SYS2CMAC (Bit 22)                                 */
+#define CMAC_CM_EXC_STAT_REG_EXC_SYS2CMAC_Msk (0x400000UL)          /*!< EXC_SYS2CMAC (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_EXC_STAT_REG_EXC_SW_LLC_3_Pos (21UL)                /*!< EXC_SW_LLC_3 (Bit 21)                                 */
+#define CMAC_CM_EXC_STAT_REG_EXC_SW_LLC_3_Msk (0x200000UL)          /*!< EXC_SW_LLC_3 (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_EXC_STAT_REG_EXC_SW_LLC_2_Pos (20UL)                /*!< EXC_SW_LLC_2 (Bit 20)                                 */
+#define CMAC_CM_EXC_STAT_REG_EXC_SW_LLC_2_Msk (0x100000UL)          /*!< EXC_SW_LLC_2 (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_EXC_STAT_REG_EXC_SW_LLC_1_Pos (19UL)                /*!< EXC_SW_LLC_1 (Bit 19)                                 */
+#define CMAC_CM_EXC_STAT_REG_EXC_SW_LLC_1_Msk (0x80000UL)           /*!< EXC_SW_LLC_1 (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_EXC_STAT_REG_EXC_CRYPTO_Pos (18UL)                  /*!< EXC_CRYPTO (Bit 18)                                   */
+#define CMAC_CM_EXC_STAT_REG_EXC_CRYPTO_Msk (0x40000UL)             /*!< EXC_CRYPTO (Bitfield-Mask: 0x01)                      */
+#define CMAC_CM_EXC_STAT_REG_EXC_LL_TIMER2LLC_Pos (17UL)            /*!< EXC_LL_TIMER2LLC (Bit 17)                             */
+#define CMAC_CM_EXC_STAT_REG_EXC_LL_TIMER2LLC_Msk (0x20000UL)       /*!< EXC_LL_TIMER2LLC (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_EXC_STAT_REG_EXC_LL_TIMER2PRMTV_Pos (16UL)          /*!< EXC_LL_TIMER2PRMTV (Bit 16)                           */
+#define CMAC_CM_EXC_STAT_REG_EXC_LL_TIMER2PRMTV_Msk (0x10000UL)     /*!< EXC_LL_TIMER2PRMTV (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_EXC_STAT_REG_EXC_SW_MAC_Pos (15UL)                  /*!< EXC_SW_MAC (Bit 15)                                   */
+#define CMAC_CM_EXC_STAT_REG_EXC_SW_MAC_Msk (0x8000UL)              /*!< EXC_SW_MAC (Bitfield-Mask: 0x01)                      */
+#define CMAC_CM_EXC_STAT_REG_EXC_WDOG_EARLY_Pos (14UL)              /*!< EXC_WDOG_EARLY (Bit 14)                               */
+#define CMAC_CM_EXC_STAT_REG_EXC_WDOG_EARLY_Msk (0x4000UL)          /*!< EXC_WDOG_EARLY (Bitfield-Mask: 0x01)                  */
+#define CMAC_CM_EXC_STAT_REG_EXC_SWD_DETACH_Pos (13UL)              /*!< EXC_SWD_DETACH (Bit 13)                               */
+#define CMAC_CM_EXC_STAT_REG_EXC_SWD_DETACH_Msk (0x2000UL)          /*!< EXC_SWD_DETACH (Bitfield-Mask: 0x01)                  */
+#define CMAC_CM_EXC_STAT_REG_EXC_COEX_Pos (12UL)                    /*!< EXC_COEX (Bit 12)                                     */
+#define CMAC_CM_EXC_STAT_REG_EXC_COEX_Msk (0x1000UL)                /*!< EXC_COEX (Bitfield-Mask: 0x01)                        */
+#define CMAC_CM_EXC_STAT_REG_EXC_PHY_Pos  (11UL)                    /*!< EXC_PHY (Bit 11)                                      */
+#define CMAC_CM_EXC_STAT_REG_EXC_PHY_Msk  (0x800UL)                 /*!< EXC_PHY (Bitfield-Mask: 0x01)                         */
+#define CMAC_CM_EXC_STAT_REG_EXC_XTAL_RDY_Pos (10UL)                /*!< EXC_XTAL_RDY (Bit 10)                                 */
+#define CMAC_CM_EXC_STAT_REG_EXC_XTAL_RDY_Msk (0x400UL)             /*!< EXC_XTAL_RDY (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_EXC_STAT_REG_EXC_DIAG_Pos (9UL)                     /*!< EXC_DIAG (Bit 9)                                      */
+#define CMAC_CM_EXC_STAT_REG_EXC_DIAG_Msk (0x200UL)                 /*!< EXC_DIAG (Bitfield-Mask: 0x01)                        */
+#define CMAC_CM_EXC_STAT_REG_EXC_PHY_TO_IDLE_4THIS_Pos (8UL)        /*!< EXC_PHY_TO_IDLE_4THIS (Bit 8)                         */
+#define CMAC_CM_EXC_STAT_REG_EXC_PHY_TO_IDLE_4THIS_Msk (0x100UL)    /*!< EXC_PHY_TO_IDLE_4THIS (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_EXC_STAT_REG_EXC_BS_STOP_Pos (7UL)                  /*!< EXC_BS_STOP (Bit 7)                                   */
+#define CMAC_CM_EXC_STAT_REG_EXC_BS_STOP_Msk (0x80UL)               /*!< EXC_BS_STOP (Bitfield-Mask: 0x01)                     */
+#define CMAC_CM_EXC_STAT_REG_EXC_FRAME_START_Pos (6UL)              /*!< EXC_FRAME_START (Bit 6)                               */
+#define CMAC_CM_EXC_STAT_REG_EXC_FRAME_START_Msk (0x40UL)           /*!< EXC_FRAME_START (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_EXC_STAT_REG_EXC_CORR_TIMEOUT_Pos (5UL)             /*!< EXC_CORR_TIMEOUT (Bit 5)                              */
+#define CMAC_CM_EXC_STAT_REG_EXC_CORR_TIMEOUT_Msk (0x20UL)          /*!< EXC_CORR_TIMEOUT (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_EXC_STAT_REG_EXC_BS_START_4THIS_Pos (4UL)           /*!< EXC_BS_START_4THIS (Bit 4)                            */
+#define CMAC_CM_EXC_STAT_REG_EXC_BS_START_4THIS_Msk (0x10UL)        /*!< EXC_BS_START_4THIS (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_EXC_STAT_REG_EXC_FIELD_ON_THR_EXP_Pos (3UL)         /*!< EXC_FIELD_ON_THR_EXP (Bit 3)                          */
+#define CMAC_CM_EXC_STAT_REG_EXC_FIELD_ON_THR_EXP_Msk (0x8UL)       /*!< EXC_FIELD_ON_THR_EXP (Bitfield-Mask: 0x01)            */
+#define CMAC_CM_EXC_STAT_REG_EXC_CPU_ERROR_Pos (2UL)                /*!< EXC_CPU_ERROR (Bit 2)                                 */
+#define CMAC_CM_EXC_STAT_REG_EXC_CPU_ERROR_Msk (0x4UL)              /*!< EXC_CPU_ERROR (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_EXC_STAT_REG_EXC_BS_ERROR_Pos (1UL)                 /*!< EXC_BS_ERROR (Bit 1)                                  */
+#define CMAC_CM_EXC_STAT_REG_EXC_BS_ERROR_Msk (0x2UL)               /*!< EXC_BS_ERROR (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_EXC_STAT_REG_EXC_FW_ERROR_Pos (0UL)                 /*!< EXC_FW_ERROR (Bit 0)                                  */
+#define CMAC_CM_EXC_STAT_REG_EXC_FW_ERROR_Msk (0x1UL)               /*!< EXC_FW_ERROR (Bitfield-Mask: 0x01)                    */
+/* ==================================================  CM_FIELD_1_CTRL_REG  ================================================== */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_PHY_ATTR_SEL_Pos (31UL)      /*!< FIELD_PHY_ATTR_SEL (Bit 31)                           */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_PHY_ATTR_SEL_Msk (0x80000000UL) /*!< FIELD_PHY_ATTR_SEL (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_SPR_Pos (28UL)               /*!< FIELD_SPR (Bit 28)                                    */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_SPR_Msk (0x10000000UL)       /*!< FIELD_SPR (Bitfield-Mask: 0x01)                       */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_EXC_ON_EXP_Pos (27UL)        /*!< FIELD_EXC_ON_EXP (Bit 27)                             */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_EXC_ON_EXP_Msk (0x8000000UL) /*!< FIELD_EXC_ON_EXP (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_XL_AOAD_Pos (26UL)           /*!< FIELD_XL_AOAD (Bit 26)                                */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_XL_AOAD_Msk (0x4000000UL)    /*!< FIELD_XL_AOAD (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_XL_CORR_Pos (25UL)           /*!< FIELD_XL_CORR (Bit 25)                                */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_XL_CORR_Msk (0x2000000UL)    /*!< FIELD_XL_CORR (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_XL_CRC_Pos (24UL)            /*!< FIELD_XL_CRC (Bit 24)                                 */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_XL_CRC_Msk (0x1000000UL)     /*!< FIELD_XL_CRC (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_XL_DMA_CRYPTO_Pos (23UL)     /*!< FIELD_XL_DMA_CRYPTO (Bit 23)                          */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_XL_DMA_CRYPTO_Msk (0x800000UL) /*!< FIELD_XL_DMA_CRYPTO (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_XL_DMA_MEM_Pos (22UL)        /*!< FIELD_XL_DMA_MEM (Bit 22)                             */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_XL_DMA_MEM_Msk (0x400000UL)  /*!< FIELD_XL_DMA_MEM (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_XL_WHITENING_Pos (21UL)      /*!< FIELD_XL_WHITENING (Bit 21)                           */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_XL_WHITENING_Msk (0x200000UL) /*!< FIELD_XL_WHITENING (Bitfield-Mask: 0x01)             */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_TX_DATA_SRC_Pos (19UL)       /*!< FIELD_TX_DATA_SRC (Bit 19)                            */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_TX_DATA_SRC_Msk (0x180000UL) /*!< FIELD_TX_DATA_SRC (Bitfield-Mask: 0x03)               */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_EVPSYMBOL_LUT_Pos (17UL)     /*!< FIELD_EVPSYMBOL_LUT (Bit 17)                          */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_EVPSYMBOL_LUT_Msk (0x60000UL) /*!< FIELD_EVPSYMBOL_LUT (Bitfield-Mask: 0x03)            */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_BPSYMBOL_LUT_Pos (15UL)      /*!< FIELD_BPSYMBOL_LUT (Bit 15)                           */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_BPSYMBOL_LUT_Msk (0x18000UL) /*!< FIELD_BPSYMBOL_LUT (Bitfield-Mask: 0x03)              */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_BS_SMPL_NO_ERROR_Pos (14UL)  /*!< FIELD_BS_SMPL_NO_ERROR (Bit 14)                       */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_BS_SMPL_NO_ERROR_Msk (0x4000UL) /*!< FIELD_BS_SMPL_NO_ERROR (Bitfield-Mask: 0x01)       */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_EXC_ON_THR_Pos (13UL)        /*!< FIELD_EXC_ON_THR (Bit 13)                             */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_EXC_ON_THR_Msk (0x2000UL)    /*!< FIELD_EXC_ON_THR (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_WINDOW_CNT_THR_Pos (8UL)     /*!< FIELD_WINDOW_CNT_THR (Bit 8)                          */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_WINDOW_CNT_THR_Msk (0x1f00UL) /*!< FIELD_WINDOW_CNT_THR (Bitfield-Mask: 0x1f)           */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_MSB_FIRST_Pos (7UL)          /*!< FIELD_MSB_FIRST (Bit 7)                               */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_MSB_FIRST_Msk (0x80UL)       /*!< FIELD_MSB_FIRST (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_LAST_Pos (6UL)               /*!< FIELD_LAST (Bit 6)                                    */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_LAST_Msk (0x40UL)            /*!< FIELD_LAST (Bitfield-Mask: 0x01)                      */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_VALID_Pos (5UL)              /*!< FIELD_VALID (Bit 5)                                   */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_VALID_Msk (0x20UL)           /*!< FIELD_VALID (Bitfield-Mask: 0x01)                     */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_SIZE_M1_Pos (0UL)            /*!< FIELD_SIZE_M1 (Bit 0)                                 */
+#define CMAC_CM_FIELD_1_CTRL_REG_FIELD_SIZE_M1_Msk (0x1fUL)         /*!< FIELD_SIZE_M1 (Bitfield-Mask: 0x1f)                   */
+/* ==================================================  CM_FIELD_1_DATA_REG  ================================================== */
+#define CMAC_CM_FIELD_1_DATA_REG_FIELD_DATA_Pos (0UL)               /*!< FIELD_DATA (Bit 0)                                    */
+#define CMAC_CM_FIELD_1_DATA_REG_FIELD_DATA_Msk (0xffffffffUL)      /*!< FIELD_DATA (Bitfield-Mask: 0xffffffff)                */
+/* ==================================================  CM_FIELD_2_CTRL_REG  ================================================== */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_PHY_ATTR_SEL_Pos (31UL)      /*!< FIELD_PHY_ATTR_SEL (Bit 31)                           */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_PHY_ATTR_SEL_Msk (0x80000000UL) /*!< FIELD_PHY_ATTR_SEL (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_SPR_Pos (28UL)               /*!< FIELD_SPR (Bit 28)                                    */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_SPR_Msk (0x10000000UL)       /*!< FIELD_SPR (Bitfield-Mask: 0x01)                       */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_EXC_ON_EXP_Pos (27UL)        /*!< FIELD_EXC_ON_EXP (Bit 27)                             */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_EXC_ON_EXP_Msk (0x8000000UL) /*!< FIELD_EXC_ON_EXP (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_XL_AOAD_Pos (26UL)           /*!< FIELD_XL_AOAD (Bit 26)                                */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_XL_AOAD_Msk (0x4000000UL)    /*!< FIELD_XL_AOAD (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_XL_CORR_Pos (25UL)           /*!< FIELD_XL_CORR (Bit 25)                                */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_XL_CORR_Msk (0x2000000UL)    /*!< FIELD_XL_CORR (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_XL_CRC_Pos (24UL)            /*!< FIELD_XL_CRC (Bit 24)                                 */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_XL_CRC_Msk (0x1000000UL)     /*!< FIELD_XL_CRC (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_XL_DMA_CRYPTO_Pos (23UL)     /*!< FIELD_XL_DMA_CRYPTO (Bit 23)                          */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_XL_DMA_CRYPTO_Msk (0x800000UL) /*!< FIELD_XL_DMA_CRYPTO (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_XL_DMA_MEM_Pos (22UL)        /*!< FIELD_XL_DMA_MEM (Bit 22)                             */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_XL_DMA_MEM_Msk (0x400000UL)  /*!< FIELD_XL_DMA_MEM (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_XL_WHITENING_Pos (21UL)      /*!< FIELD_XL_WHITENING (Bit 21)                           */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_XL_WHITENING_Msk (0x200000UL) /*!< FIELD_XL_WHITENING (Bitfield-Mask: 0x01)             */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_TX_DATA_SRC_Pos (19UL)       /*!< FIELD_TX_DATA_SRC (Bit 19)                            */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_TX_DATA_SRC_Msk (0x180000UL) /*!< FIELD_TX_DATA_SRC (Bitfield-Mask: 0x03)               */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_EVPSYMBOL_LUT_Pos (17UL)     /*!< FIELD_EVPSYMBOL_LUT (Bit 17)                          */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_EVPSYMBOL_LUT_Msk (0x60000UL) /*!< FIELD_EVPSYMBOL_LUT (Bitfield-Mask: 0x03)            */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_BPSYMBOL_LUT_Pos (15UL)      /*!< FIELD_BPSYMBOL_LUT (Bit 15)                           */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_BPSYMBOL_LUT_Msk (0x18000UL) /*!< FIELD_BPSYMBOL_LUT (Bitfield-Mask: 0x03)              */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_BS_SMPL_NO_ERROR_Pos (14UL)  /*!< FIELD_BS_SMPL_NO_ERROR (Bit 14)                       */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_BS_SMPL_NO_ERROR_Msk (0x4000UL) /*!< FIELD_BS_SMPL_NO_ERROR (Bitfield-Mask: 0x01)       */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_EXC_ON_THR_Pos (13UL)        /*!< FIELD_EXC_ON_THR (Bit 13)                             */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_EXC_ON_THR_Msk (0x2000UL)    /*!< FIELD_EXC_ON_THR (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_WINDOW_CNT_THR_Pos (8UL)     /*!< FIELD_WINDOW_CNT_THR (Bit 8)                          */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_WINDOW_CNT_THR_Msk (0x1f00UL) /*!< FIELD_WINDOW_CNT_THR (Bitfield-Mask: 0x1f)           */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_MSB_FIRST_Pos (7UL)          /*!< FIELD_MSB_FIRST (Bit 7)                               */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_MSB_FIRST_Msk (0x80UL)       /*!< FIELD_MSB_FIRST (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_LAST_Pos (6UL)               /*!< FIELD_LAST (Bit 6)                                    */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_LAST_Msk (0x40UL)            /*!< FIELD_LAST (Bitfield-Mask: 0x01)                      */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_VALID_Pos (5UL)              /*!< FIELD_VALID (Bit 5)                                   */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_VALID_Msk (0x20UL)           /*!< FIELD_VALID (Bitfield-Mask: 0x01)                     */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_SIZE_M1_Pos (0UL)            /*!< FIELD_SIZE_M1 (Bit 0)                                 */
+#define CMAC_CM_FIELD_2_CTRL_REG_FIELD_SIZE_M1_Msk (0x1fUL)         /*!< FIELD_SIZE_M1 (Bitfield-Mask: 0x1f)                   */
+/* ==================================================  CM_FIELD_2_DATA_REG  ================================================== */
+#define CMAC_CM_FIELD_2_DATA_REG_FIELD_DATA_Pos (0UL)               /*!< FIELD_DATA (Bit 0)                                    */
+#define CMAC_CM_FIELD_2_DATA_REG_FIELD_DATA_Msk (0xffffffffUL)      /*!< FIELD_DATA (Bitfield-Mask: 0xffffffff)                */
+/* ==================================================  CM_FIELD_3_CTRL_REG  ================================================== */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_PHY_ATTR_SEL_Pos (31UL)      /*!< FIELD_PHY_ATTR_SEL (Bit 31)                           */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_PHY_ATTR_SEL_Msk (0x80000000UL) /*!< FIELD_PHY_ATTR_SEL (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_SPR_Pos (28UL)               /*!< FIELD_SPR (Bit 28)                                    */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_SPR_Msk (0x10000000UL)       /*!< FIELD_SPR (Bitfield-Mask: 0x01)                       */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_EXC_ON_EXP_Pos (27UL)        /*!< FIELD_EXC_ON_EXP (Bit 27)                             */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_EXC_ON_EXP_Msk (0x8000000UL) /*!< FIELD_EXC_ON_EXP (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_XL_AOAD_Pos (26UL)           /*!< FIELD_XL_AOAD (Bit 26)                                */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_XL_AOAD_Msk (0x4000000UL)    /*!< FIELD_XL_AOAD (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_XL_CORR_Pos (25UL)           /*!< FIELD_XL_CORR (Bit 25)                                */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_XL_CORR_Msk (0x2000000UL)    /*!< FIELD_XL_CORR (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_XL_CRC_Pos (24UL)            /*!< FIELD_XL_CRC (Bit 24)                                 */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_XL_CRC_Msk (0x1000000UL)     /*!< FIELD_XL_CRC (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_XL_DMA_CRYPTO_Pos (23UL)     /*!< FIELD_XL_DMA_CRYPTO (Bit 23)                          */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_XL_DMA_CRYPTO_Msk (0x800000UL) /*!< FIELD_XL_DMA_CRYPTO (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_XL_DMA_MEM_Pos (22UL)        /*!< FIELD_XL_DMA_MEM (Bit 22)                             */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_XL_DMA_MEM_Msk (0x400000UL)  /*!< FIELD_XL_DMA_MEM (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_XL_WHITENING_Pos (21UL)      /*!< FIELD_XL_WHITENING (Bit 21)                           */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_XL_WHITENING_Msk (0x200000UL) /*!< FIELD_XL_WHITENING (Bitfield-Mask: 0x01)             */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_TX_DATA_SRC_Pos (19UL)       /*!< FIELD_TX_DATA_SRC (Bit 19)                            */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_TX_DATA_SRC_Msk (0x180000UL) /*!< FIELD_TX_DATA_SRC (Bitfield-Mask: 0x03)               */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_EVPSYMBOL_LUT_Pos (17UL)     /*!< FIELD_EVPSYMBOL_LUT (Bit 17)                          */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_EVPSYMBOL_LUT_Msk (0x60000UL) /*!< FIELD_EVPSYMBOL_LUT (Bitfield-Mask: 0x03)            */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_BPSYMBOL_LUT_Pos (15UL)      /*!< FIELD_BPSYMBOL_LUT (Bit 15)                           */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_BPSYMBOL_LUT_Msk (0x18000UL) /*!< FIELD_BPSYMBOL_LUT (Bitfield-Mask: 0x03)              */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_BS_SMPL_NO_ERROR_Pos (14UL)  /*!< FIELD_BS_SMPL_NO_ERROR (Bit 14)                       */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_BS_SMPL_NO_ERROR_Msk (0x4000UL) /*!< FIELD_BS_SMPL_NO_ERROR (Bitfield-Mask: 0x01)       */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_EXC_ON_THR_Pos (13UL)        /*!< FIELD_EXC_ON_THR (Bit 13)                             */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_EXC_ON_THR_Msk (0x2000UL)    /*!< FIELD_EXC_ON_THR (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_WINDOW_CNT_THR_Pos (8UL)     /*!< FIELD_WINDOW_CNT_THR (Bit 8)                          */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_WINDOW_CNT_THR_Msk (0x1f00UL) /*!< FIELD_WINDOW_CNT_THR (Bitfield-Mask: 0x1f)           */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_MSB_FIRST_Pos (7UL)          /*!< FIELD_MSB_FIRST (Bit 7)                               */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_MSB_FIRST_Msk (0x80UL)       /*!< FIELD_MSB_FIRST (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_LAST_Pos (6UL)               /*!< FIELD_LAST (Bit 6)                                    */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_LAST_Msk (0x40UL)            /*!< FIELD_LAST (Bitfield-Mask: 0x01)                      */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_VALID_Pos (5UL)              /*!< FIELD_VALID (Bit 5)                                   */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_VALID_Msk (0x20UL)           /*!< FIELD_VALID (Bitfield-Mask: 0x01)                     */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_SIZE_M1_Pos (0UL)            /*!< FIELD_SIZE_M1 (Bit 0)                                 */
+#define CMAC_CM_FIELD_3_CTRL_REG_FIELD_SIZE_M1_Msk (0x1fUL)         /*!< FIELD_SIZE_M1 (Bitfield-Mask: 0x1f)                   */
+/* ==================================================  CM_FIELD_3_DATA_REG  ================================================== */
+#define CMAC_CM_FIELD_3_DATA_REG_FIELD_DATA_Pos (0UL)               /*!< FIELD_DATA (Bit 0)                                    */
+#define CMAC_CM_FIELD_3_DATA_REG_FIELD_DATA_Msk (0xffffffffUL)      /*!< FIELD_DATA (Bitfield-Mask: 0xffffffff)                */
+/* ==================================================  CM_FIELD_4_CTRL_REG  ================================================== */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_PHY_ATTR_SEL_Pos (31UL)      /*!< FIELD_PHY_ATTR_SEL (Bit 31)                           */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_PHY_ATTR_SEL_Msk (0x80000000UL) /*!< FIELD_PHY_ATTR_SEL (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_SPR_Pos (28UL)               /*!< FIELD_SPR (Bit 28)                                    */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_SPR_Msk (0x10000000UL)       /*!< FIELD_SPR (Bitfield-Mask: 0x01)                       */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_EXC_ON_EXP_Pos (27UL)        /*!< FIELD_EXC_ON_EXP (Bit 27)                             */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_EXC_ON_EXP_Msk (0x8000000UL) /*!< FIELD_EXC_ON_EXP (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_XL_AOAD_Pos (26UL)           /*!< FIELD_XL_AOAD (Bit 26)                                */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_XL_AOAD_Msk (0x4000000UL)    /*!< FIELD_XL_AOAD (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_XL_CORR_Pos (25UL)           /*!< FIELD_XL_CORR (Bit 25)                                */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_XL_CORR_Msk (0x2000000UL)    /*!< FIELD_XL_CORR (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_XL_CRC_Pos (24UL)            /*!< FIELD_XL_CRC (Bit 24)                                 */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_XL_CRC_Msk (0x1000000UL)     /*!< FIELD_XL_CRC (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_XL_DMA_CRYPTO_Pos (23UL)     /*!< FIELD_XL_DMA_CRYPTO (Bit 23)                          */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_XL_DMA_CRYPTO_Msk (0x800000UL) /*!< FIELD_XL_DMA_CRYPTO (Bitfield-Mask: 0x01)           */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_XL_DMA_MEM_Pos (22UL)        /*!< FIELD_XL_DMA_MEM (Bit 22)                             */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_XL_DMA_MEM_Msk (0x400000UL)  /*!< FIELD_XL_DMA_MEM (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_XL_WHITENING_Pos (21UL)      /*!< FIELD_XL_WHITENING (Bit 21)                           */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_XL_WHITENING_Msk (0x200000UL) /*!< FIELD_XL_WHITENING (Bitfield-Mask: 0x01)             */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_TX_DATA_SRC_Pos (19UL)       /*!< FIELD_TX_DATA_SRC (Bit 19)                            */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_TX_DATA_SRC_Msk (0x180000UL) /*!< FIELD_TX_DATA_SRC (Bitfield-Mask: 0x03)               */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_EVPSYMBOL_LUT_Pos (17UL)     /*!< FIELD_EVPSYMBOL_LUT (Bit 17)                          */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_EVPSYMBOL_LUT_Msk (0x60000UL) /*!< FIELD_EVPSYMBOL_LUT (Bitfield-Mask: 0x03)            */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_BPSYMBOL_LUT_Pos (15UL)      /*!< FIELD_BPSYMBOL_LUT (Bit 15)                           */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_BPSYMBOL_LUT_Msk (0x18000UL) /*!< FIELD_BPSYMBOL_LUT (Bitfield-Mask: 0x03)              */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_BS_SMPL_NO_ERROR_Pos (14UL)  /*!< FIELD_BS_SMPL_NO_ERROR (Bit 14)                       */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_BS_SMPL_NO_ERROR_Msk (0x4000UL) /*!< FIELD_BS_SMPL_NO_ERROR (Bitfield-Mask: 0x01)       */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_EXC_ON_THR_Pos (13UL)        /*!< FIELD_EXC_ON_THR (Bit 13)                             */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_EXC_ON_THR_Msk (0x2000UL)    /*!< FIELD_EXC_ON_THR (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_WINDOW_CNT_THR_Pos (8UL)     /*!< FIELD_WINDOW_CNT_THR (Bit 8)                          */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_WINDOW_CNT_THR_Msk (0x1f00UL) /*!< FIELD_WINDOW_CNT_THR (Bitfield-Mask: 0x1f)           */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_MSB_FIRST_Pos (7UL)          /*!< FIELD_MSB_FIRST (Bit 7)                               */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_MSB_FIRST_Msk (0x80UL)       /*!< FIELD_MSB_FIRST (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_LAST_Pos (6UL)               /*!< FIELD_LAST (Bit 6)                                    */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_LAST_Msk (0x40UL)            /*!< FIELD_LAST (Bitfield-Mask: 0x01)                      */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_VALID_Pos (5UL)              /*!< FIELD_VALID (Bit 5)                                   */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_VALID_Msk (0x20UL)           /*!< FIELD_VALID (Bitfield-Mask: 0x01)                     */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_SIZE_M1_Pos (0UL)            /*!< FIELD_SIZE_M1 (Bit 0)                                 */
+#define CMAC_CM_FIELD_4_CTRL_REG_FIELD_SIZE_M1_Msk (0x1fUL)         /*!< FIELD_SIZE_M1 (Bitfield-Mask: 0x1f)                   */
+/* ==================================================  CM_FIELD_4_DATA_REG  ================================================== */
+#define CMAC_CM_FIELD_4_DATA_REG_FIELD_DATA_Pos (0UL)               /*!< FIELD_DATA (Bit 0)                                    */
+#define CMAC_CM_FIELD_4_DATA_REG_FIELD_DATA_Msk (0xffffffffUL)      /*!< FIELD_DATA (Bitfield-Mask: 0xffffffff)                */
+/* ================================================  CM_FIELD_PUSH_CTRL_REG  ================================================= */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_PHY_ATTR_SEL_Pos (31UL)   /*!< FIELD_PHY_ATTR_SEL (Bit 31)                           */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_PHY_ATTR_SEL_Msk (0x80000000UL) /*!< FIELD_PHY_ATTR_SEL (Bitfield-Mask: 0x01)        */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_SPR_Pos (28UL)            /*!< FIELD_SPR (Bit 28)                                    */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_SPR_Msk (0x10000000UL)    /*!< FIELD_SPR (Bitfield-Mask: 0x01)                       */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_EXC_ON_EXP_Pos (27UL)     /*!< FIELD_EXC_ON_EXP (Bit 27)                             */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_EXC_ON_EXP_Msk (0x8000000UL) /*!< FIELD_EXC_ON_EXP (Bitfield-Mask: 0x01)             */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_XL_AOAD_Pos (26UL)        /*!< FIELD_XL_AOAD (Bit 26)                                */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_XL_AOAD_Msk (0x4000000UL) /*!< FIELD_XL_AOAD (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_XL_CORR_Pos (25UL)        /*!< FIELD_XL_CORR (Bit 25)                                */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_XL_CORR_Msk (0x2000000UL) /*!< FIELD_XL_CORR (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_XL_CRC_Pos (24UL)         /*!< FIELD_XL_CRC (Bit 24)                                 */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_XL_CRC_Msk (0x1000000UL)  /*!< FIELD_XL_CRC (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_XL_DMA_CRYPTO_Pos (23UL)  /*!< FIELD_XL_DMA_CRYPTO (Bit 23)                          */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_XL_DMA_CRYPTO_Msk (0x800000UL) /*!< FIELD_XL_DMA_CRYPTO (Bitfield-Mask: 0x01)        */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_XL_DMA_MEM_Pos (22UL)     /*!< FIELD_XL_DMA_MEM (Bit 22)                             */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_XL_DMA_MEM_Msk (0x400000UL) /*!< FIELD_XL_DMA_MEM (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_XL_WHITENING_Pos (21UL)   /*!< FIELD_XL_WHITENING (Bit 21)                           */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_XL_WHITENING_Msk (0x200000UL) /*!< FIELD_XL_WHITENING (Bitfield-Mask: 0x01)          */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_TX_DATA_SRC_Pos (19UL)    /*!< FIELD_TX_DATA_SRC (Bit 19)                            */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_TX_DATA_SRC_Msk (0x180000UL) /*!< FIELD_TX_DATA_SRC (Bitfield-Mask: 0x03)            */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_EVPSYMBOL_LUT_Pos (17UL)  /*!< FIELD_EVPSYMBOL_LUT (Bit 17)                          */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_EVPSYMBOL_LUT_Msk (0x60000UL) /*!< FIELD_EVPSYMBOL_LUT (Bitfield-Mask: 0x03)         */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_BPSYMBOL_LUT_Pos (15UL)   /*!< FIELD_BPSYMBOL_LUT (Bit 15)                           */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_BPSYMBOL_LUT_Msk (0x18000UL) /*!< FIELD_BPSYMBOL_LUT (Bitfield-Mask: 0x03)           */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_BS_SMPL_NO_ERROR_Pos (14UL) /*!< FIELD_BS_SMPL_NO_ERROR (Bit 14)                     */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_BS_SMPL_NO_ERROR_Msk (0x4000UL) /*!< FIELD_BS_SMPL_NO_ERROR (Bitfield-Mask: 0x01)    */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_EXC_ON_THR_Pos (13UL)     /*!< FIELD_EXC_ON_THR (Bit 13)                             */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_EXC_ON_THR_Msk (0x2000UL) /*!< FIELD_EXC_ON_THR (Bitfield-Mask: 0x01)                */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_WINDOW_CNT_THR_Pos (8UL)  /*!< FIELD_WINDOW_CNT_THR (Bit 8)                          */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_WINDOW_CNT_THR_Msk (0x1f00UL) /*!< FIELD_WINDOW_CNT_THR (Bitfield-Mask: 0x1f)        */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_MSB_FIRST_Pos (7UL)       /*!< FIELD_MSB_FIRST (Bit 7)                               */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_MSB_FIRST_Msk (0x80UL)    /*!< FIELD_MSB_FIRST (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_LAST_Pos (6UL)            /*!< FIELD_LAST (Bit 6)                                    */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_LAST_Msk (0x40UL)         /*!< FIELD_LAST (Bitfield-Mask: 0x01)                      */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_VALID_Pos (5UL)           /*!< FIELD_VALID (Bit 5)                                   */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_VALID_Msk (0x20UL)        /*!< FIELD_VALID (Bitfield-Mask: 0x01)                     */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_SIZE_M1_Pos (0UL)         /*!< FIELD_SIZE_M1 (Bit 0)                                 */
+#define CMAC_CM_FIELD_PUSH_CTRL_REG_FIELD_SIZE_M1_Msk (0x1fUL)      /*!< FIELD_SIZE_M1 (Bitfield-Mask: 0x1f)                   */
+/* ================================================  CM_FIELD_PUSH_DATA_REG  ================================================= */
+#define CMAC_CM_FIELD_PUSH_DATA_REG_FIELD_DATA_Pos (0UL)            /*!< FIELD_DATA (Bit 0)                                    */
+#define CMAC_CM_FIELD_PUSH_DATA_REG_FIELD_DATA_Msk (0xffffffffUL)   /*!< FIELD_DATA (Bitfield-Mask: 0xffffffff)                */
+/* ====================================================  CM_FRAME_1_REG  ===================================================== */
+#define CMAC_CM_FRAME_1_REG_FRAME_VALID_Pos (31UL)                  /*!< FRAME_VALID (Bit 31)                                  */
+#define CMAC_CM_FRAME_1_REG_FRAME_VALID_Msk (0x80000000UL)          /*!< FRAME_VALID (Bitfield-Mask: 0x01)                     */
+#define CMAC_CM_FRAME_1_REG_FRAME_TX_Pos  (30UL)                    /*!< FRAME_TX (Bit 30)                                     */
+#define CMAC_CM_FRAME_1_REG_FRAME_TX_Msk  (0x40000000UL)            /*!< FRAME_TX (Bitfield-Mask: 0x01)                        */
+#define CMAC_CM_FRAME_1_REG_FRAME_EXC_ON_BS_START_Pos (29UL)        /*!< FRAME_EXC_ON_BS_START (Bit 29)                        */
+#define CMAC_CM_FRAME_1_REG_FRAME_EXC_ON_BS_START_Msk (0x20000000UL) /*!< FRAME_EXC_ON_BS_START (Bitfield-Mask: 0x01)          */
+#define CMAC_CM_FRAME_1_REG_FRAME_DMA_REQS_MASKED_Pos (28UL)        /*!< FRAME_DMA_REQS_MASKED (Bit 28)                        */
+#define CMAC_CM_FRAME_1_REG_FRAME_DMA_REQS_MASKED_Msk (0x10000000UL) /*!< FRAME_DMA_REQS_MASKED (Bitfield-Mask: 0x01)          */
+#define CMAC_CM_FRAME_1_REG_FRAME_COEX_PTI_Pos (27UL)               /*!< FRAME_COEX_PTI (Bit 27)                               */
+#define CMAC_CM_FRAME_1_REG_FRAME_COEX_PTI_Msk (0x8000000UL)        /*!< FRAME_COEX_PTI (Bitfield-Mask: 0x01)                  */
+#define CMAC_CM_FRAME_1_REG_FRAME_START_OFFSET_Pos (0UL)            /*!< FRAME_START_OFFSET (Bit 0)                            */
+#define CMAC_CM_FRAME_1_REG_FRAME_START_OFFSET_Msk (0x7ffUL)        /*!< FRAME_START_OFFSET (Bitfield-Mask: 0x7ff)             */
+/* ====================================================  CM_FRAME_2_REG  ===================================================== */
+#define CMAC_CM_FRAME_2_REG_FRAME_VALID_Pos (31UL)                  /*!< FRAME_VALID (Bit 31)                                  */
+#define CMAC_CM_FRAME_2_REG_FRAME_VALID_Msk (0x80000000UL)          /*!< FRAME_VALID (Bitfield-Mask: 0x01)                     */
+#define CMAC_CM_FRAME_2_REG_FRAME_TX_Pos  (30UL)                    /*!< FRAME_TX (Bit 30)                                     */
+#define CMAC_CM_FRAME_2_REG_FRAME_TX_Msk  (0x40000000UL)            /*!< FRAME_TX (Bitfield-Mask: 0x01)                        */
+#define CMAC_CM_FRAME_2_REG_FRAME_EXC_ON_BS_START_Pos (29UL)        /*!< FRAME_EXC_ON_BS_START (Bit 29)                        */
+#define CMAC_CM_FRAME_2_REG_FRAME_EXC_ON_BS_START_Msk (0x20000000UL) /*!< FRAME_EXC_ON_BS_START (Bitfield-Mask: 0x01)          */
+#define CMAC_CM_FRAME_2_REG_FRAME_DMA_REQS_MASKED_Pos (28UL)        /*!< FRAME_DMA_REQS_MASKED (Bit 28)                        */
+#define CMAC_CM_FRAME_2_REG_FRAME_DMA_REQS_MASKED_Msk (0x10000000UL) /*!< FRAME_DMA_REQS_MASKED (Bitfield-Mask: 0x01)          */
+#define CMAC_CM_FRAME_2_REG_FRAME_COEX_PTI_Pos (27UL)               /*!< FRAME_COEX_PTI (Bit 27)                               */
+#define CMAC_CM_FRAME_2_REG_FRAME_COEX_PTI_Msk (0x8000000UL)        /*!< FRAME_COEX_PTI (Bitfield-Mask: 0x01)                  */
+#define CMAC_CM_FRAME_2_REG_FRAME_START_OFFSET_Pos (0UL)            /*!< FRAME_START_OFFSET (Bit 0)                            */
+#define CMAC_CM_FRAME_2_REG_FRAME_START_OFFSET_Msk (0x7ffUL)        /*!< FRAME_START_OFFSET (Bitfield-Mask: 0x7ff)             */
+/* =================================================  CM_LL_INT_MSK_CLR_REG  ================================================= */
+#define CMAC_CM_LL_INT_MSK_CLR_REG_LL_TIMER1_EQ_Y_SEL_Pos (8UL)     /*!< LL_TIMER1_EQ_Y_SEL (Bit 8)                            */
+#define CMAC_CM_LL_INT_MSK_CLR_REG_LL_TIMER1_EQ_Y_SEL_Msk (0x100UL) /*!< LL_TIMER1_EQ_Y_SEL (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_LL_INT_MSK_CLR_REG_LL_TIMER1_EQ_X_SEL_Pos (7UL)     /*!< LL_TIMER1_EQ_X_SEL (Bit 7)                            */
+#define CMAC_CM_LL_INT_MSK_CLR_REG_LL_TIMER1_EQ_X_SEL_Msk (0x80UL)  /*!< LL_TIMER1_EQ_X_SEL (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_LL_INT_MSK_CLR_REG_LL_TIMER1_36_10_EQ_Z_SEL_Pos (6UL) /*!< LL_TIMER1_36_10_EQ_Z_SEL (Bit 6)                    */
+#define CMAC_CM_LL_INT_MSK_CLR_REG_LL_TIMER1_36_10_EQ_Z_SEL_Msk (0x40UL) /*!< LL_TIMER1_36_10_EQ_Z_SEL (Bitfield-Mask: 0x01)   */
+#define CMAC_CM_LL_INT_MSK_CLR_REG_LL_TIMER1_36_10_EQ_Y_SEL_Pos (5UL) /*!< LL_TIMER1_36_10_EQ_Y_SEL (Bit 5)                    */
+#define CMAC_CM_LL_INT_MSK_CLR_REG_LL_TIMER1_36_10_EQ_Y_SEL_Msk (0x20UL) /*!< LL_TIMER1_36_10_EQ_Y_SEL (Bitfield-Mask: 0x01)   */
+#define CMAC_CM_LL_INT_MSK_CLR_REG_LL_TIMER1_36_10_EQ_X_SEL_Pos (4UL) /*!< LL_TIMER1_36_10_EQ_X_SEL (Bit 4)                    */
+#define CMAC_CM_LL_INT_MSK_CLR_REG_LL_TIMER1_36_10_EQ_X_SEL_Msk (0x10UL) /*!< LL_TIMER1_36_10_EQ_X_SEL (Bitfield-Mask: 0x01)   */
+#define CMAC_CM_LL_INT_MSK_CLR_REG_LL_TIMER1_36_10_EQ_0_SEL_Pos (3UL) /*!< LL_TIMER1_36_10_EQ_0_SEL (Bit 3)                    */
+#define CMAC_CM_LL_INT_MSK_CLR_REG_LL_TIMER1_36_10_EQ_0_SEL_Msk (0x8UL) /*!< LL_TIMER1_36_10_EQ_0_SEL (Bitfield-Mask: 0x01)    */
+#define CMAC_CM_LL_INT_MSK_CLR_REG_LL_TIMER1_9_0_EQ_Y_SEL_Pos (2UL) /*!< LL_TIMER1_9_0_EQ_Y_SEL (Bit 2)                        */
+#define CMAC_CM_LL_INT_MSK_CLR_REG_LL_TIMER1_9_0_EQ_Y_SEL_Msk (0x4UL) /*!< LL_TIMER1_9_0_EQ_Y_SEL (Bitfield-Mask: 0x01)        */
+#define CMAC_CM_LL_INT_MSK_CLR_REG_LL_TIMER1_9_0_EQ_X_SEL_Pos (1UL) /*!< LL_TIMER1_9_0_EQ_X_SEL (Bit 1)                        */
+#define CMAC_CM_LL_INT_MSK_CLR_REG_LL_TIMER1_9_0_EQ_X_SEL_Msk (0x2UL) /*!< LL_TIMER1_9_0_EQ_X_SEL (Bitfield-Mask: 0x01)        */
+#define CMAC_CM_LL_INT_MSK_CLR_REG_LL_TIMER1_9_0_EQ_0_SEL_Pos (0UL) /*!< LL_TIMER1_9_0_EQ_0_SEL (Bit 0)                        */
+#define CMAC_CM_LL_INT_MSK_CLR_REG_LL_TIMER1_9_0_EQ_0_SEL_Msk (0x1UL) /*!< LL_TIMER1_9_0_EQ_0_SEL (Bitfield-Mask: 0x01)        */
+/* =================================================  CM_LL_INT_MSK_SET_REG  ================================================= */
+#define CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_EQ_Y_SEL_Pos (8UL)     /*!< LL_TIMER1_EQ_Y_SEL (Bit 8)                            */
+#define CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_EQ_Y_SEL_Msk (0x100UL) /*!< LL_TIMER1_EQ_Y_SEL (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_EQ_X_SEL_Pos (7UL)     /*!< LL_TIMER1_EQ_X_SEL (Bit 7)                            */
+#define CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_EQ_X_SEL_Msk (0x80UL)  /*!< LL_TIMER1_EQ_X_SEL (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_36_10_EQ_Z_SEL_Pos (6UL) /*!< LL_TIMER1_36_10_EQ_Z_SEL (Bit 6)                    */
+#define CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_36_10_EQ_Z_SEL_Msk (0x40UL) /*!< LL_TIMER1_36_10_EQ_Z_SEL (Bitfield-Mask: 0x01)   */
+#define CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_36_10_EQ_Y_SEL_Pos (5UL) /*!< LL_TIMER1_36_10_EQ_Y_SEL (Bit 5)                    */
+#define CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_36_10_EQ_Y_SEL_Msk (0x20UL) /*!< LL_TIMER1_36_10_EQ_Y_SEL (Bitfield-Mask: 0x01)   */
+#define CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_36_10_EQ_X_SEL_Pos (4UL) /*!< LL_TIMER1_36_10_EQ_X_SEL (Bit 4)                    */
+#define CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_36_10_EQ_X_SEL_Msk (0x10UL) /*!< LL_TIMER1_36_10_EQ_X_SEL (Bitfield-Mask: 0x01)   */
+#define CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_36_10_EQ_0_SEL_Pos (3UL) /*!< LL_TIMER1_36_10_EQ_0_SEL (Bit 3)                    */
+#define CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_36_10_EQ_0_SEL_Msk (0x8UL) /*!< LL_TIMER1_36_10_EQ_0_SEL (Bitfield-Mask: 0x01)    */
+#define CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_9_0_EQ_Y_SEL_Pos (2UL) /*!< LL_TIMER1_9_0_EQ_Y_SEL (Bit 2)                        */
+#define CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_9_0_EQ_Y_SEL_Msk (0x4UL) /*!< LL_TIMER1_9_0_EQ_Y_SEL (Bitfield-Mask: 0x01)        */
+#define CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_9_0_EQ_X_SEL_Pos (1UL) /*!< LL_TIMER1_9_0_EQ_X_SEL (Bit 1)                        */
+#define CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_9_0_EQ_X_SEL_Msk (0x2UL) /*!< LL_TIMER1_9_0_EQ_X_SEL (Bitfield-Mask: 0x01)        */
+#define CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_9_0_EQ_0_SEL_Pos (0UL) /*!< LL_TIMER1_9_0_EQ_0_SEL (Bit 0)                        */
+#define CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_9_0_EQ_0_SEL_Msk (0x1UL) /*!< LL_TIMER1_9_0_EQ_0_SEL (Bitfield-Mask: 0x01)        */
+/* ===================================================  CM_LL_INT_SEL_REG  =================================================== */
+#define CMAC_CM_LL_INT_SEL_REG_LL_TIMER1_EQ_Y_SEL_Pos (8UL)         /*!< LL_TIMER1_EQ_Y_SEL (Bit 8)                            */
+#define CMAC_CM_LL_INT_SEL_REG_LL_TIMER1_EQ_Y_SEL_Msk (0x100UL)     /*!< LL_TIMER1_EQ_Y_SEL (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_LL_INT_SEL_REG_LL_TIMER1_EQ_X_SEL_Pos (7UL)         /*!< LL_TIMER1_EQ_X_SEL (Bit 7)                            */
+#define CMAC_CM_LL_INT_SEL_REG_LL_TIMER1_EQ_X_SEL_Msk (0x80UL)      /*!< LL_TIMER1_EQ_X_SEL (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_LL_INT_SEL_REG_LL_TIMER1_36_10_EQ_Z_SEL_Pos (6UL)   /*!< LL_TIMER1_36_10_EQ_Z_SEL (Bit 6)                      */
+#define CMAC_CM_LL_INT_SEL_REG_LL_TIMER1_36_10_EQ_Z_SEL_Msk (0x40UL) /*!< LL_TIMER1_36_10_EQ_Z_SEL (Bitfield-Mask: 0x01)       */
+#define CMAC_CM_LL_INT_SEL_REG_LL_TIMER1_36_10_EQ_Y_SEL_Pos (5UL)   /*!< LL_TIMER1_36_10_EQ_Y_SEL (Bit 5)                      */
+#define CMAC_CM_LL_INT_SEL_REG_LL_TIMER1_36_10_EQ_Y_SEL_Msk (0x20UL) /*!< LL_TIMER1_36_10_EQ_Y_SEL (Bitfield-Mask: 0x01)       */
+#define CMAC_CM_LL_INT_SEL_REG_LL_TIMER1_36_10_EQ_X_SEL_Pos (4UL)   /*!< LL_TIMER1_36_10_EQ_X_SEL (Bit 4)                      */
+#define CMAC_CM_LL_INT_SEL_REG_LL_TIMER1_36_10_EQ_X_SEL_Msk (0x10UL) /*!< LL_TIMER1_36_10_EQ_X_SEL (Bitfield-Mask: 0x01)       */
+#define CMAC_CM_LL_INT_SEL_REG_LL_TIMER1_36_10_EQ_0_SEL_Pos (3UL)   /*!< LL_TIMER1_36_10_EQ_0_SEL (Bit 3)                      */
+#define CMAC_CM_LL_INT_SEL_REG_LL_TIMER1_36_10_EQ_0_SEL_Msk (0x8UL) /*!< LL_TIMER1_36_10_EQ_0_SEL (Bitfield-Mask: 0x01)        */
+#define CMAC_CM_LL_INT_SEL_REG_LL_TIMER1_9_0_EQ_Y_SEL_Pos (2UL)     /*!< LL_TIMER1_9_0_EQ_Y_SEL (Bit 2)                        */
+#define CMAC_CM_LL_INT_SEL_REG_LL_TIMER1_9_0_EQ_Y_SEL_Msk (0x4UL)   /*!< LL_TIMER1_9_0_EQ_Y_SEL (Bitfield-Mask: 0x01)          */
+#define CMAC_CM_LL_INT_SEL_REG_LL_TIMER1_9_0_EQ_X_SEL_Pos (1UL)     /*!< LL_TIMER1_9_0_EQ_X_SEL (Bit 1)                        */
+#define CMAC_CM_LL_INT_SEL_REG_LL_TIMER1_9_0_EQ_X_SEL_Msk (0x2UL)   /*!< LL_TIMER1_9_0_EQ_X_SEL (Bitfield-Mask: 0x01)          */
+#define CMAC_CM_LL_INT_SEL_REG_LL_TIMER1_9_0_EQ_0_SEL_Pos (0UL)     /*!< LL_TIMER1_9_0_EQ_0_SEL (Bit 0)                        */
+#define CMAC_CM_LL_INT_SEL_REG_LL_TIMER1_9_0_EQ_0_SEL_Msk (0x1UL)   /*!< LL_TIMER1_9_0_EQ_0_SEL (Bitfield-Mask: 0x01)          */
+/* ==================================================  CM_LL_INT_STAT_REG  =================================================== */
+#define CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_EQ_Y_SEL_Pos (8UL)        /*!< LL_TIMER1_EQ_Y_SEL (Bit 8)                            */
+#define CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_EQ_Y_SEL_Msk (0x100UL)    /*!< LL_TIMER1_EQ_Y_SEL (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_EQ_X_SEL_Pos (7UL)        /*!< LL_TIMER1_EQ_X_SEL (Bit 7)                            */
+#define CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_EQ_X_SEL_Msk (0x80UL)     /*!< LL_TIMER1_EQ_X_SEL (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_36_10_EQ_Z_SEL_Pos (6UL)  /*!< LL_TIMER1_36_10_EQ_Z_SEL (Bit 6)                      */
+#define CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_36_10_EQ_Z_SEL_Msk (0x40UL) /*!< LL_TIMER1_36_10_EQ_Z_SEL (Bitfield-Mask: 0x01)      */
+#define CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_36_10_EQ_Y_SEL_Pos (5UL)  /*!< LL_TIMER1_36_10_EQ_Y_SEL (Bit 5)                      */
+#define CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_36_10_EQ_Y_SEL_Msk (0x20UL) /*!< LL_TIMER1_36_10_EQ_Y_SEL (Bitfield-Mask: 0x01)      */
+#define CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_36_10_EQ_X_SEL_Pos (4UL)  /*!< LL_TIMER1_36_10_EQ_X_SEL (Bit 4)                      */
+#define CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_36_10_EQ_X_SEL_Msk (0x10UL) /*!< LL_TIMER1_36_10_EQ_X_SEL (Bitfield-Mask: 0x01)      */
+#define CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_36_10_EQ_0_SEL_Pos (3UL)  /*!< LL_TIMER1_36_10_EQ_0_SEL (Bit 3)                      */
+#define CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_36_10_EQ_0_SEL_Msk (0x8UL) /*!< LL_TIMER1_36_10_EQ_0_SEL (Bitfield-Mask: 0x01)       */
+#define CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_9_0_EQ_Y_SEL_Pos (2UL)    /*!< LL_TIMER1_9_0_EQ_Y_SEL (Bit 2)                        */
+#define CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_9_0_EQ_Y_SEL_Msk (0x4UL)  /*!< LL_TIMER1_9_0_EQ_Y_SEL (Bitfield-Mask: 0x01)          */
+#define CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_9_0_EQ_X_SEL_Pos (1UL)    /*!< LL_TIMER1_9_0_EQ_X_SEL (Bit 1)                        */
+#define CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_9_0_EQ_X_SEL_Msk (0x2UL)  /*!< LL_TIMER1_9_0_EQ_X_SEL (Bitfield-Mask: 0x01)          */
+#define CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_9_0_EQ_0_SEL_Pos (0UL)    /*!< LL_TIMER1_9_0_EQ_0_SEL (Bit 0)                        */
+#define CMAC_CM_LL_INT_STAT_REG_LL_TIMER1_9_0_EQ_0_SEL_Msk (0x1UL)  /*!< LL_TIMER1_9_0_EQ_0_SEL (Bitfield-Mask: 0x01)          */
+/* ==============================================  CM_LL_TIMER1_36_10_EQ_X_REG  ============================================== */
+#define CMAC_CM_LL_TIMER1_36_10_EQ_X_REG_LL_TIMER1_36_10_BF_Pos (0UL) /*!< LL_TIMER1_36_10_BF (Bit 0)                          */
+#define CMAC_CM_LL_TIMER1_36_10_EQ_X_REG_LL_TIMER1_36_10_BF_Msk (0x7ffffffUL) /*!< LL_TIMER1_36_10_BF (Bitfield-Mask: 0x7ffffff) */
+/* ==============================================  CM_LL_TIMER1_36_10_EQ_Y_REG  ============================================== */
+#define CMAC_CM_LL_TIMER1_36_10_EQ_Y_REG_LL_TIMER1_36_10_BF_Pos (0UL) /*!< LL_TIMER1_36_10_BF (Bit 0)                          */
+#define CMAC_CM_LL_TIMER1_36_10_EQ_Y_REG_LL_TIMER1_36_10_BF_Msk (0x7ffffffUL) /*!< LL_TIMER1_36_10_BF (Bitfield-Mask: 0x7ffffff) */
+/* ==============================================  CM_LL_TIMER1_36_10_EQ_Z_REG  ============================================== */
+#define CMAC_CM_LL_TIMER1_36_10_EQ_Z_REG_LL_TIMER1_36_10_BF_Pos (0UL) /*!< LL_TIMER1_36_10_BF (Bit 0)                          */
+#define CMAC_CM_LL_TIMER1_36_10_EQ_Z_REG_LL_TIMER1_36_10_BF_Msk (0x7ffffffUL) /*!< LL_TIMER1_36_10_BF (Bitfield-Mask: 0x7ffffff) */
+/* ================================================  CM_LL_TIMER1_36_10_REG  ================================================= */
+#define CMAC_CM_LL_TIMER1_36_10_REG_LL_TIMER1_36_10_BF_Pos (0UL)    /*!< LL_TIMER1_36_10_BF (Bit 0)                            */
+#define CMAC_CM_LL_TIMER1_36_10_REG_LL_TIMER1_36_10_BF_Msk (0x7ffffffUL) /*!< LL_TIMER1_36_10_BF (Bitfield-Mask: 0x7ffffff)    */
+/* ===============================================  CM_LL_TIMER1_9_0_EQ_X_REG  =============================================== */
+#define CMAC_CM_LL_TIMER1_9_0_EQ_X_REG_LL_TIMER1_9_0_BF_Pos (0UL)   /*!< LL_TIMER1_9_0_BF (Bit 0)                              */
+#define CMAC_CM_LL_TIMER1_9_0_EQ_X_REG_LL_TIMER1_9_0_BF_Msk (0x3ffUL) /*!< LL_TIMER1_9_0_BF (Bitfield-Mask: 0x3ff)             */
+/* ===============================================  CM_LL_TIMER1_9_0_EQ_Y_REG  =============================================== */
+#define CMAC_CM_LL_TIMER1_9_0_EQ_Y_REG_LL_TIMER1_9_0_BF_Pos (0UL)   /*!< LL_TIMER1_9_0_BF (Bit 0)                              */
+#define CMAC_CM_LL_TIMER1_9_0_EQ_Y_REG_LL_TIMER1_9_0_BF_Msk (0x3ffUL) /*!< LL_TIMER1_9_0_BF (Bitfield-Mask: 0x3ff)             */
+/* =================================================  CM_LL_TIMER1_9_0_REG  ================================================== */
+#define CMAC_CM_LL_TIMER1_9_0_REG_LL_TIMER1_9_0_BF_Pos (0UL)        /*!< LL_TIMER1_9_0_BF (Bit 0)                              */
+#define CMAC_CM_LL_TIMER1_9_0_REG_LL_TIMER1_9_0_BF_Msk (0x3ffUL)    /*!< LL_TIMER1_9_0_BF (Bitfield-Mask: 0x3ff)               */
+/* ===============================================  CM_LL_TIMER1_EQ_X_HI_REG  ================================================ */
+#define CMAC_CM_LL_TIMER1_EQ_X_HI_REG_LL_TIMER1_36_10_BF_Pos (0UL)  /*!< LL_TIMER1_36_10_BF (Bit 0)                            */
+#define CMAC_CM_LL_TIMER1_EQ_X_HI_REG_LL_TIMER1_36_10_BF_Msk (0x7ffffffUL) /*!< LL_TIMER1_36_10_BF (Bitfield-Mask: 0x7ffffff)  */
+/* ===============================================  CM_LL_TIMER1_EQ_X_LO_REG  ================================================ */
+#define CMAC_CM_LL_TIMER1_EQ_X_LO_REG_LL_TIMER1_9_0_BF_Pos (0UL)    /*!< LL_TIMER1_9_0_BF (Bit 0)                              */
+#define CMAC_CM_LL_TIMER1_EQ_X_LO_REG_LL_TIMER1_9_0_BF_Msk (0x3ffUL) /*!< LL_TIMER1_9_0_BF (Bitfield-Mask: 0x3ff)              */
+/* ==============================================  CM_LL_TIMER1_EQ_Y_CTRL_REG  =============================================== */
+#define CMAC_CM_LL_TIMER1_EQ_Y_CTRL_REG_LL_TIMER1_EQ_Y_36_15_EN_Pos (6UL) /*!< LL_TIMER1_EQ_Y_36_15_EN (Bit 6)                 */
+#define CMAC_CM_LL_TIMER1_EQ_Y_CTRL_REG_LL_TIMER1_EQ_Y_36_15_EN_Msk (0x40UL) /*!< LL_TIMER1_EQ_Y_36_15_EN (Bitfield-Mask: 0x01) */
+#define CMAC_CM_LL_TIMER1_EQ_Y_CTRL_REG_LL_TIMER1_EQ_Y_14_EN_Pos (5UL) /*!< LL_TIMER1_EQ_Y_14_EN (Bit 5)                       */
+#define CMAC_CM_LL_TIMER1_EQ_Y_CTRL_REG_LL_TIMER1_EQ_Y_14_EN_Msk (0x20UL) /*!< LL_TIMER1_EQ_Y_14_EN (Bitfield-Mask: 0x01)      */
+#define CMAC_CM_LL_TIMER1_EQ_Y_CTRL_REG_LL_TIMER1_EQ_Y_13_EN_Pos (4UL) /*!< LL_TIMER1_EQ_Y_13_EN (Bit 4)                       */
+#define CMAC_CM_LL_TIMER1_EQ_Y_CTRL_REG_LL_TIMER1_EQ_Y_13_EN_Msk (0x10UL) /*!< LL_TIMER1_EQ_Y_13_EN (Bitfield-Mask: 0x01)      */
+#define CMAC_CM_LL_TIMER1_EQ_Y_CTRL_REG_LL_TIMER1_EQ_Y_12_EN_Pos (3UL) /*!< LL_TIMER1_EQ_Y_12_EN (Bit 3)                       */
+#define CMAC_CM_LL_TIMER1_EQ_Y_CTRL_REG_LL_TIMER1_EQ_Y_12_EN_Msk (0x8UL) /*!< LL_TIMER1_EQ_Y_12_EN (Bitfield-Mask: 0x01)       */
+#define CMAC_CM_LL_TIMER1_EQ_Y_CTRL_REG_LL_TIMER1_EQ_Y_11_EN_Pos (2UL) /*!< LL_TIMER1_EQ_Y_11_EN (Bit 2)                       */
+#define CMAC_CM_LL_TIMER1_EQ_Y_CTRL_REG_LL_TIMER1_EQ_Y_11_EN_Msk (0x4UL) /*!< LL_TIMER1_EQ_Y_11_EN (Bitfield-Mask: 0x01)       */
+#define CMAC_CM_LL_TIMER1_EQ_Y_CTRL_REG_LL_TIMER1_EQ_Y_10_EN_Pos (1UL) /*!< LL_TIMER1_EQ_Y_10_EN (Bit 1)                       */
+#define CMAC_CM_LL_TIMER1_EQ_Y_CTRL_REG_LL_TIMER1_EQ_Y_10_EN_Msk (0x2UL) /*!< LL_TIMER1_EQ_Y_10_EN (Bitfield-Mask: 0x01)       */
+#define CMAC_CM_LL_TIMER1_EQ_Y_CTRL_REG_LL_TIMER1_EQ_Y_9_0_EN_Pos (0UL) /*!< LL_TIMER1_EQ_Y_9_0_EN (Bit 0)                     */
+#define CMAC_CM_LL_TIMER1_EQ_Y_CTRL_REG_LL_TIMER1_EQ_Y_9_0_EN_Msk (0x1UL) /*!< LL_TIMER1_EQ_Y_9_0_EN (Bitfield-Mask: 0x01)     */
+/* ===============================================  CM_LL_TIMER1_EQ_Y_HI_REG  ================================================ */
+#define CMAC_CM_LL_TIMER1_EQ_Y_HI_REG_LL_TIMER1_36_10_BF_Pos (0UL)  /*!< LL_TIMER1_36_10_BF (Bit 0)                            */
+#define CMAC_CM_LL_TIMER1_EQ_Y_HI_REG_LL_TIMER1_36_10_BF_Msk (0x7ffffffUL) /*!< LL_TIMER1_36_10_BF (Bitfield-Mask: 0x7ffffff)  */
+/* ===============================================  CM_LL_TIMER1_EQ_Y_LO_REG  ================================================ */
+#define CMAC_CM_LL_TIMER1_EQ_Y_LO_REG_LL_TIMER1_9_0_BF_Pos (0UL)    /*!< LL_TIMER1_9_0_BF (Bit 0)                              */
+#define CMAC_CM_LL_TIMER1_EQ_Y_LO_REG_LL_TIMER1_9_0_BF_Msk (0x3ffUL) /*!< LL_TIMER1_9_0_BF (Bitfield-Mask: 0x3ff)              */
+/* ===================================================  CM_PHY_CTRL2_REG  ==================================================== */
+#define CMAC_CM_PHY_CTRL2_REG_CORR_WINDOW_Pos (18UL)                /*!< CORR_WINDOW (Bit 18)                                  */
+#define CMAC_CM_PHY_CTRL2_REG_CORR_WINDOW_Msk (0xfffc0000UL)        /*!< CORR_WINDOW (Bitfield-Mask: 0x3fff)                   */
+#define CMAC_CM_PHY_CTRL2_REG_CORR_ERRORS_ALLOW_Pos (15UL)          /*!< CORR_ERRORS_ALLOW (Bit 15)                            */
+#define CMAC_CM_PHY_CTRL2_REG_CORR_ERRORS_ALLOW_Msk (0x38000UL)     /*!< CORR_ERRORS_ALLOW (Bitfield-Mask: 0x07)               */
+#define CMAC_CM_PHY_CTRL2_REG_CORR_CLK_MODE_Pos (13UL)              /*!< CORR_CLK_MODE (Bit 13)                                */
+#define CMAC_CM_PHY_CTRL2_REG_CORR_CLK_MODE_Msk (0x6000UL)          /*!< CORR_CLK_MODE (Bitfield-Mask: 0x03)                   */
+#define CMAC_CM_PHY_CTRL2_REG_CORR_SMPL_MODE_Pos (10UL)             /*!< CORR_SMPL_MODE (Bit 10)                               */
+#define CMAC_CM_PHY_CTRL2_REG_CORR_SMPL_MODE_Msk (0x1c00UL)         /*!< CORR_SMPL_MODE (Bitfield-Mask: 0x07)                  */
+#define CMAC_CM_PHY_CTRL2_REG_TXRX_EN_0_FROM_FRAME_Pos (9UL)        /*!< TXRX_EN_0_FROM_FRAME (Bit 9)                          */
+#define CMAC_CM_PHY_CTRL2_REG_TXRX_EN_0_FROM_FRAME_Msk (0x200UL)    /*!< TXRX_EN_0_FROM_FRAME (Bitfield-Mask: 0x01)            */
+#define CMAC_CM_PHY_CTRL2_REG_PHY_MODE_Pos (8UL)                    /*!< PHY_MODE (Bit 8)                                      */
+#define CMAC_CM_PHY_CTRL2_REG_PHY_MODE_Msk (0x100UL)                /*!< PHY_MODE (Bitfield-Mask: 0x01)                        */
+#define CMAC_CM_PHY_CTRL2_REG_PHY_RF_CHANNEL_Pos (0UL)              /*!< PHY_RF_CHANNEL (Bit 0)                                */
+#define CMAC_CM_PHY_CTRL2_REG_PHY_RF_CHANNEL_Msk (0x3fUL)           /*!< PHY_RF_CHANNEL (Bitfield-Mask: 0x3f)                  */
+/* ====================================================  CM_PHY_CTRL_REG  ==================================================== */
+#define CMAC_CM_PHY_CTRL_REG_PHY_PWR_DN_RX_M1_Pos (24UL)            /*!< PHY_PWR_DN_RX_M1 (Bit 24)                             */
+#define CMAC_CM_PHY_CTRL_REG_PHY_PWR_DN_RX_M1_Msk (0x7f000000UL)    /*!< PHY_PWR_DN_RX_M1 (Bitfield-Mask: 0x7f)                */
+#define CMAC_CM_PHY_CTRL_REG_PHY_PWR_DN_TX_M1_Pos (16UL)            /*!< PHY_PWR_DN_TX_M1 (Bit 16)                             */
+#define CMAC_CM_PHY_CTRL_REG_PHY_PWR_DN_TX_M1_Msk (0x7f0000UL)      /*!< PHY_PWR_DN_TX_M1 (Bitfield-Mask: 0x7f)                */
+#define CMAC_CM_PHY_CTRL_REG_PHY_PWR_UP_RX_M1_Pos (8UL)             /*!< PHY_PWR_UP_RX_M1 (Bit 8)                              */
+#define CMAC_CM_PHY_CTRL_REG_PHY_PWR_UP_RX_M1_Msk (0x7f00UL)        /*!< PHY_PWR_UP_RX_M1 (Bitfield-Mask: 0x7f)                */
+#define CMAC_CM_PHY_CTRL_REG_PHY_PWR_UP_TX_M1_Pos (0UL)             /*!< PHY_PWR_UP_TX_M1 (Bit 0)                              */
+#define CMAC_CM_PHY_CTRL_REG_PHY_PWR_UP_TX_M1_Msk (0x7fUL)          /*!< PHY_PWR_UP_TX_M1 (Bitfield-Mask: 0x7f)                */
+/* ======================================================  CM_STAT_REG  ====================================================== */
+#define CMAC_CM_STAT_REG_CM_FRAME_TIMER_Pos (16UL)                  /*!< CM_FRAME_TIMER (Bit 16)                               */
+#define CMAC_CM_STAT_REG_CM_FRAME_TIMER_Msk (0x3fff0000UL)          /*!< CM_FRAME_TIMER (Bitfield-Mask: 0x3fff)                */
+#define CMAC_CM_STAT_REG_CORR_EYEDGRM_CNT_Pos (10UL)                /*!< CORR_EYEDGRM_CNT (Bit 10)                             */
+#define CMAC_CM_STAT_REG_CORR_EYEDGRM_CNT_Msk (0xfc00UL)            /*!< CORR_EYEDGRM_CNT (Bitfield-Mask: 0x3f)                */
+#define CMAC_CM_STAT_REG_COEX_EXT_ACT_Pos (6UL)                     /*!< COEX_EXT_ACT (Bit 6)                                  */
+#define CMAC_CM_STAT_REG_COEX_EXT_ACT_Msk (0x40UL)                  /*!< COEX_EXT_ACT (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_STAT_REG_SWD_ATTACHED_Pos (5UL)                     /*!< SWD_ATTACHED (Bit 5)                                  */
+#define CMAC_CM_STAT_REG_SWD_ATTACHED_Msk (0x20UL)                  /*!< SWD_ATTACHED (Bitfield-Mask: 0x01)                    */
+#define CMAC_CM_STAT_REG_TIMERS_HALT_Pos  (4UL)                     /*!< TIMERS_HALT (Bit 4)                                   */
+#define CMAC_CM_STAT_REG_TIMERS_HALT_Msk  (0x10UL)                  /*!< TIMERS_HALT (Bitfield-Mask: 0x01)                     */
+#define CMAC_CM_STAT_REG_FRAME_FSM_TRANSFER_Pos (3UL)               /*!< FRAME_FSM_TRANSFER (Bit 3)                            */
+#define CMAC_CM_STAT_REG_FRAME_FSM_TRANSFER_Msk (0x8UL)             /*!< FRAME_FSM_TRANSFER (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_STAT_REG_FRAME_FSM_BUSY_Pos (2UL)                   /*!< FRAME_FSM_BUSY (Bit 2)                                */
+#define CMAC_CM_STAT_REG_FRAME_FSM_BUSY_Msk (0x4UL)                 /*!< FRAME_FSM_BUSY (Bitfield-Mask: 0x01)                  */
+#define CMAC_CM_STAT_REG_PHY_RDY4BS_FORCE_0_Pos (1UL)               /*!< PHY_RDY4BS_FORCE_0 (Bit 1)                            */
+#define CMAC_CM_STAT_REG_PHY_RDY4BS_FORCE_0_Msk (0x2UL)             /*!< PHY_RDY4BS_FORCE_0 (Bitfield-Mask: 0x01)              */
+#define CMAC_CM_STAT_REG_CALLBACK_IRQ_VALID_Pos (0UL)               /*!< CALLBACK_IRQ_VALID (Bit 0)                            */
+#define CMAC_CM_STAT_REG_CALLBACK_IRQ_VALID_Msk (0x1UL)             /*!< CALLBACK_IRQ_VALID (Bitfield-Mask: 0x01)              */
+/* ======================================================  CM_TS1_REG  ======================================================= */
+#define CMAC_CM_TS1_REG_TS1_DIRTY_Pos     (31UL)                    /*!< TS1_DIRTY (Bit 31)                                    */
+#define CMAC_CM_TS1_REG_TS1_DIRTY_Msk     (0x80000000UL)            /*!< TS1_DIRTY (Bitfield-Mask: 0x01)                       */
+#define CMAC_CM_TS1_REG_TS1_CLK_CNT1MHZ_Pos (22UL)                  /*!< TS1_CLK_CNT1MHZ (Bit 22)                              */
+#define CMAC_CM_TS1_REG_TS1_CLK_CNT1MHZ_Msk (0x400000UL)            /*!< TS1_CLK_CNT1MHZ (Bitfield-Mask: 0x01)                 */
+#define CMAC_CM_TS1_REG_TS1_CLK_CNT2MHZ_Pos (16UL)                  /*!< TS1_CLK_CNT2MHZ (Bit 16)                              */
+#define CMAC_CM_TS1_REG_TS1_CLK_CNT2MHZ_Msk (0x3f0000UL)            /*!< TS1_CLK_CNT2MHZ (Bitfield-Mask: 0x3f)                 */
+#define CMAC_CM_TS1_REG_TS1_TIMER1_10_Pos (10UL)                    /*!< TS1_TIMER1_10 (Bit 10)                                */
+#define CMAC_CM_TS1_REG_TS1_TIMER1_10_Msk (0x400UL)                 /*!< TS1_TIMER1_10 (Bitfield-Mask: 0x01)                   */
+#define CMAC_CM_TS1_REG_TS1_TIMER1_9_0_Pos (0UL)                    /*!< TS1_TIMER1_9_0 (Bit 0)                                */
+#define CMAC_CM_TS1_REG_TS1_TIMER1_9_0_Msk (0x3ffUL)                /*!< TS1_TIMER1_9_0 (Bitfield-Mask: 0x3ff)                 */
+/* ===================================================  CM_WHITENING_REG  ==================================================== */
+#define CMAC_CM_WHITENING_REG_WHITENING_LFSR_Pos (0UL)              /*!< WHITENING_LFSR (Bit 0)                                */
+#define CMAC_CM_WHITENING_REG_WHITENING_LFSR_Msk (0x7fUL)           /*!< WHITENING_LFSR (Bitfield-Mask: 0x7f)                  */
+
+/* ----------------------------  CMAC_CM_CTRL_SYS_REG  ---------------------------- */
+#define CMAC_CM_CTRL_SYS_REG_CMAC2SYS_IRQ_STATE_Pos (0UL)               /*!< CMAC CM_CTRL_SYS_REG: CMAC2SYS_IRQ_STATE (Bit 0)            */
+#define CMAC_CM_CTRL_SYS_REG_CMAC2SYS_IRQ_STATE_Msk (0x1UL)             /*!< CMAC CM_CTRL_SYS_REG: CMAC2SYS_IRQ_STATE (Bitfield-Mask: 0x01) */
+#define CMAC_CM_CTRL_SYS_REG_CMAC2SYS_IRQ_CLR_Pos (1UL)                 /*!< CMAC CM_CTRL_SYS_REG: CMAC2SYS_IRQ_CLR (Bit 1)              */
+#define CMAC_CM_CTRL_SYS_REG_CMAC2SYS_IRQ_CLR_Msk (0x2UL)               /*!< CMAC CM_CTRL_SYS_REG: CMAC2SYS_IRQ_CLR (Bitfield-Mask: 0x01) */
+#define CMAC_CM_CTRL_SYS_REG_CMAC_RST_BS_STATE_Pos (7UL)                /*!< CMAC CM_CTRL_SYS_REG: CMAC_RST_BS_STATE (Bit 7)             */
+#define CMAC_CM_CTRL_SYS_REG_CMAC_RST_BS_STATE_Msk (0x80UL)             /*!< CMAC CM_CTRL_SYS_REG: CMAC_RST_BS_STATE (Bitfield-Mask: 0x01) */
+#define CMAC_CM_CTRL_SYS_REG_CMAC_RST_MCPU_STATE_Pos (8UL)              /*!< CMAC CM_CTRL_SYS_REG: CMAC_RST_MCPU_STATE (Bit 8)           */
+#define CMAC_CM_CTRL_SYS_REG_CMAC_RST_MCPU_STATE_Msk (0x100UL)          /*!< CMAC CM_CTRL_SYS_REG: CMAC_RST_MCPU_STATE (Bitfield-Mask: 0x01) */
+#define CMAC_CM_CTRL_SYS_REG_MCPU_SLEEPING_STATE_Pos (9UL)              /*!< CMAC CM_CTRL_SYS_REG: MCPU_SLEEPING_STATE (Bit 9)           */
+#define CMAC_CM_CTRL_SYS_REG_MCPU_SLEEPING_STATE_Msk (0x200UL)          /*!< CMAC CM_CTRL_SYS_REG: MCPU_SLEEPING_STATE (Bitfield-Mask: 0x01) */
+#define CMAC_CM_CTRL_SYS_REG_CMAC_FW_ERROR_STATE_Pos (10UL)             /*!< CMAC CM_CTRL_SYS_REG: CMAC_FW_ERROR_STATE (Bit 10)          */
+#define CMAC_CM_CTRL_SYS_REG_CMAC_FW_ERROR_STATE_Msk (0x400UL)          /*!< CMAC CM_CTRL_SYS_REG: CMAC_FW_ERROR_STATE (Bitfield-Mask: 0x01) */
+#define CMAC_CM_CTRL_SYS_REG_CMAC_BS_ERROR_STATE_Pos (11UL)             /*!< CMAC CM_CTRL_SYS_REG: CMAC_BS_ERROR_STATE (Bit 11)          */
+#define CMAC_CM_CTRL_SYS_REG_CMAC_BS_ERROR_STATE_Msk (0x800UL)          /*!< CMAC CM_CTRL_SYS_REG: CMAC_BS_ERROR_STATE (Bitfield-Mask: 0x01) */
+#define CMAC_CM_CTRL_SYS_REG_CMAC_CPU_ERROR_STATE_Pos (12UL)            /*!< CMAC CM_CTRL_SYS_REG: CMAC_CPU_ERROR_STATE (Bit 12)         */
+#define CMAC_CM_CTRL_SYS_REG_CMAC_CPU_ERROR_STATE_Msk (0x1000UL)        /*!< CMAC CM_CTRL_SYS_REG: CMAC_CPU_ERROR_STATE (Bitfield-Mask: 0x01) */
+#define CMAC_CM_CTRL_SYS_REG_CMAC_SYSMEMCTRL_ERROR_STATE_Pos (13UL)     /*!< CMAC CM_CTRL_SYS_REG: CMAC_SYSMEMCTRL_ERROR_STATE (Bit 13)  */
+#define CMAC_CM_CTRL_SYS_REG_CMAC_SYSMEMCTRL_ERROR_STATE_Msk (0x2000UL) /*!< CMAC CM_CTRL_SYS_REG: CMAC_SYSMEMCTRL_ERROR_STATE (Bitfield-Mask: 0x01) */
+#define CMAC_CM_CTRL_SYS_REG_CMAC_WDOG_EXPIRE_STATE_Pos (14UL)          /*!< CMAC CM_CTRL_SYS_REG: CMAC_WDOG_EXPIRE_STATE (Bit 14)       */
+#define CMAC_CM_CTRL_SYS_REG_CMAC_WDOG_EXPIRE_STATE_Msk (0x4000UL)      /*!< CMAC CM_CTRL_SYS_REG: CMAC_WDOG_EXPIRE_STATE (Bitfield-Mask: 0x01) */
+#define CMAC_CM_CTRL_SYS_REG_CMAC_LOCKUP_STATE_Pos (15UL)               /*!< CMAC CM_CTRL_SYS_REG: CMAC_LOCKUP_STATE (Bit 15)            */
+#define CMAC_CM_CTRL_SYS_REG_CMAC_LOCKUP_STATE_Msk (0x8000UL)           /*!< CMAC CM_CTRL_SYS_REG: CMAC_LOCKUP_STATE (Bitfield-Mask: 0x01) */
+#define CMAC_CM_CTRL_SYS_REG_CMAC_CONST_1_Pos (31UL)                    /*!< CMAC CM_CTRL_SYS_REG: CMAC_CONST_1 (Bit 31)                 */
+#define CMAC_CM_CTRL_SYS_REG_CMAC_CONST_1_Msk (0x80000000UL)            /*!< CMAC CM_CTRL_SYS_REG: CMAC_CONST_1 (Bitfield-Mask: 0x01)    */
+
+/* ------------------------------  CMAC_CM_WDOG_REG  ------------------------------ */
+#define CMAC_CM_WDOG_REG_CM_WDOG_CNT_Pos      (0UL)                     /*!< CMAC CM_WDOG_REG: CM_WDOG_CNT (Bit 0)                       */
+#define CMAC_CM_WDOG_REG_CM_WDOG_CNT_Msk      (0x1fffUL)                /*!< CMAC CM_WDOG_REG: CM_WDOG_CNT (Bitfield-Mask: 0x1fff)       */
+#define CMAC_CM_WDOG_REG_CM_WDOG_WRITE_VALID_Pos (17UL)                 /*!< CMAC CM_WDOG_REG: CM_WDOG_WRITE_VALID (Bit 17)              */
+#define CMAC_CM_WDOG_REG_CM_WDOG_WRITE_VALID_Msk (0x60000UL)            /*!< CMAC CM_WDOG_REG: CM_WDOG_WRITE_VALID (Bitfield-Mask: 0x03) */
+#define CMAC_CM_WDOG_REG_CM_WDOG_SYS_RST_REQ_Pos (28UL)                 /*!< CMAC CM_WDOG_REG: CM_WDOG_SYS_RST_REQ (Bit 28)              */
+#define CMAC_CM_WDOG_REG_CM_WDOG_SYS_RST_REQ_Msk (0x10000000UL)         /*!< CMAC CM_WDOG_REG: CM_WDOG_SYS_RST_REQ (Bitfield-Mask: 0x01) */
+#define CMAC_CM_WDOG_REG_CM_WDOG_EXPIRE_Pos   (29UL)                    /*!< CMAC CM_WDOG_REG: CM_WDOG_EXPIRE (Bit 29)                   */
+#define CMAC_CM_WDOG_REG_CM_WDOG_EXPIRE_Msk   (0x20000000UL)            /*!< CMAC CM_WDOG_REG: CM_WDOG_EXPIRE (Bitfield-Mask: 0x01)      */
+#define CMAC_CM_WDOG_REG_SYS2CMAC_WDOG_FREEZE_DIS_Pos (30UL)            /*!< CMAC CM_WDOG_REG: SYS2CMAC_WDOG_FREEZE_DIS (Bit 30)         */
+#define CMAC_CM_WDOG_REG_SYS2CMAC_WDOG_FREEZE_DIS_Msk (0x40000000UL)    /*!< CMAC CM_WDOG_REG: SYS2CMAC_WDOG_FREEZE_DIS (Bitfield-Mask: 0x01) */
+#define CMAC_CM_WDOG_REG_SYS2CMAC_WDOG_FREEZE_Pos (31UL)                /*!< CMAC CM_WDOG_REG: SYS2CMAC_WDOG_FREEZE (Bit 31)             */
+#define CMAC_CM_WDOG_REG_SYS2CMAC_WDOG_FREEZE_Msk (0x80000000UL)        /*!< CMAC CM_WDOG_REG: SYS2CMAC_WDOG_FREEZE (Bitfield-Mask: 0x01) */
+
+/* -------------------------  CMAC_CM_DIAG_IRQ1_WORD_REG  ------------------------- */
+#define CMAC_CM_DIAG_IRQ1_WORD_REG_DIAG1_DCF_21_Pos (0UL)               /*!< CMAC CM_DIAG_IRQ1_WORD_REG: DIAG1_DCF_21 (Bit 0)            */
+#define CMAC_CM_DIAG_IRQ1_WORD_REG_DIAG1_DCF_21_Msk (0x1UL)             /*!< CMAC CM_DIAG_IRQ1_WORD_REG: DIAG1_DCF_21 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_WORD_REG_DIAG1_DCF_22_Pos (1UL)               /*!< CMAC CM_DIAG_IRQ1_WORD_REG: DIAG1_DCF_22 (Bit 1)            */
+#define CMAC_CM_DIAG_IRQ1_WORD_REG_DIAG1_DCF_22_Msk (0x2UL)             /*!< CMAC CM_DIAG_IRQ1_WORD_REG: DIAG1_DCF_22 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_WORD_REG_DIAG1_DCF_23_Pos (2UL)               /*!< CMAC CM_DIAG_IRQ1_WORD_REG: DIAG1_DCF_23 (Bit 2)            */
+#define CMAC_CM_DIAG_IRQ1_WORD_REG_DIAG1_DCF_23_Msk (0x4UL)             /*!< CMAC CM_DIAG_IRQ1_WORD_REG: DIAG1_DCF_23 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_WORD_REG_DIAG1_DCF_24_Pos (3UL)               /*!< CMAC CM_DIAG_IRQ1_WORD_REG: DIAG1_DCF_24 (Bit 3)            */
+#define CMAC_CM_DIAG_IRQ1_WORD_REG_DIAG1_DCF_24_Msk (0x8UL)             /*!< CMAC CM_DIAG_IRQ1_WORD_REG: DIAG1_DCF_24 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_WORD_REG_DIAG1_DCF_25_Pos (4UL)               /*!< CMAC CM_DIAG_IRQ1_WORD_REG: DIAG1_DCF_25 (Bit 4)            */
+#define CMAC_CM_DIAG_IRQ1_WORD_REG_DIAG1_DCF_25_Msk (0x10UL)            /*!< CMAC CM_DIAG_IRQ1_WORD_REG: DIAG1_DCF_25 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_WORD_REG_DIAG1_DCF_26_Pos (5UL)               /*!< CMAC CM_DIAG_IRQ1_WORD_REG: DIAG1_DCF_26 (Bit 5)            */
+#define CMAC_CM_DIAG_IRQ1_WORD_REG_DIAG1_DCF_26_Msk (0x20UL)            /*!< CMAC CM_DIAG_IRQ1_WORD_REG: DIAG1_DCF_26 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_WORD_REG_DIAG1_PHY_RX_EN_RFCU_Pos (6UL)       /*!< CMAC CM_DIAG_IRQ1_WORD_REG: DIAG1_PHY_RX_EN_RFCU (Bit 6)    */
+#define CMAC_CM_DIAG_IRQ1_WORD_REG_DIAG1_PHY_RX_EN_RFCU_Msk (0x40UL)    /*!< CMAC CM_DIAG_IRQ1_WORD_REG: DIAG1_PHY_RX_EN_RFCU (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_WORD_REG_DIAG1_PHY_TX_EN_RFCU_Pos (7UL)       /*!< CMAC CM_DIAG_IRQ1_WORD_REG: DIAG1_PHY_TX_EN_RFCU (Bit 7)    */
+#define CMAC_CM_DIAG_IRQ1_WORD_REG_DIAG1_PHY_TX_EN_RFCU_Msk (0x80UL)    /*!< CMAC CM_DIAG_IRQ1_WORD_REG: DIAG1_PHY_TX_EN_RFCU (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_WORD_REG_DIAG1_SYNC_FOUND_Pos (8UL)           /*!< CMAC CM_DIAG_IRQ1_WORD_REG: DIAG1_SYNC_FOUND (Bit 8)        */
+#define CMAC_CM_DIAG_IRQ1_WORD_REG_DIAG1_SYNC_FOUND_Msk (0x100UL)       /*!< CMAC CM_DIAG_IRQ1_WORD_REG: DIAG1_SYNC_FOUND (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_WORD_REG_DIAG1_MATCH0101_Pos (9UL)            /*!< CMAC CM_DIAG_IRQ1_WORD_REG: DIAG1_MATCH0101 (Bit 9)         */
+#define CMAC_CM_DIAG_IRQ1_WORD_REG_DIAG1_MATCH0101_Msk (0x200UL)        /*!< CMAC CM_DIAG_IRQ1_WORD_REG: DIAG1_MATCH0101 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_WORD_REG_DIAG1_SIGNAL_DETECTED_Pos (10UL)     /*!< CMAC CM_DIAG_IRQ1_WORD_REG: DIAG1_SIGNAL_DETECTED (Bit 10)  */
+#define CMAC_CM_DIAG_IRQ1_WORD_REG_DIAG1_SIGNAL_DETECTED_Msk (0x400UL)  /*!< CMAC CM_DIAG_IRQ1_WORD_REG: DIAG1_SIGNAL_DETECTED (Bitfield-Mask: 0x01) */
+
+/* -------------------------  CMAC_CM_DIAG_IRQ1_EDGE_REG  ------------------------- */
+#define CMAC_CM_DIAG_IRQ1_EDGE_REG_DIAG1_DCF_21_Pos (0UL)               /*!< CMAC CM_DIAG_IRQ1_EDGE_REG: DIAG1_DCF_21 (Bit 0)            */
+#define CMAC_CM_DIAG_IRQ1_EDGE_REG_DIAG1_DCF_21_Msk (0x1UL)             /*!< CMAC CM_DIAG_IRQ1_EDGE_REG: DIAG1_DCF_21 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_EDGE_REG_DIAG1_DCF_22_Pos (1UL)               /*!< CMAC CM_DIAG_IRQ1_EDGE_REG: DIAG1_DCF_22 (Bit 1)            */
+#define CMAC_CM_DIAG_IRQ1_EDGE_REG_DIAG1_DCF_22_Msk (0x2UL)             /*!< CMAC CM_DIAG_IRQ1_EDGE_REG: DIAG1_DCF_22 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_EDGE_REG_DIAG1_DCF_23_Pos (2UL)               /*!< CMAC CM_DIAG_IRQ1_EDGE_REG: DIAG1_DCF_23 (Bit 2)            */
+#define CMAC_CM_DIAG_IRQ1_EDGE_REG_DIAG1_DCF_23_Msk (0x4UL)             /*!< CMAC CM_DIAG_IRQ1_EDGE_REG: DIAG1_DCF_23 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_EDGE_REG_DIAG1_DCF_24_Pos (3UL)               /*!< CMAC CM_DIAG_IRQ1_EDGE_REG: DIAG1_DCF_24 (Bit 3)            */
+#define CMAC_CM_DIAG_IRQ1_EDGE_REG_DIAG1_DCF_24_Msk (0x8UL)             /*!< CMAC CM_DIAG_IRQ1_EDGE_REG: DIAG1_DCF_24 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_EDGE_REG_DIAG1_DCF_25_Pos (4UL)               /*!< CMAC CM_DIAG_IRQ1_EDGE_REG: DIAG1_DCF_25 (Bit 4)            */
+#define CMAC_CM_DIAG_IRQ1_EDGE_REG_DIAG1_DCF_25_Msk (0x10UL)            /*!< CMAC CM_DIAG_IRQ1_EDGE_REG: DIAG1_DCF_25 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_EDGE_REG_DIAG1_DCF_26_Pos (5UL)               /*!< CMAC CM_DIAG_IRQ1_EDGE_REG: DIAG1_DCF_26 (Bit 5)            */
+#define CMAC_CM_DIAG_IRQ1_EDGE_REG_DIAG1_DCF_26_Msk (0x20UL)            /*!< CMAC CM_DIAG_IRQ1_EDGE_REG: DIAG1_DCF_26 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_EDGE_REG_DIAG1_PHY_RX_EN_RFCU_Pos (6UL)       /*!< CMAC CM_DIAG_IRQ1_EDGE_REG: DIAG1_PHY_RX_EN_RFCU (Bit 6)    */
+#define CMAC_CM_DIAG_IRQ1_EDGE_REG_DIAG1_PHY_RX_EN_RFCU_Msk (0x40UL)    /*!< CMAC CM_DIAG_IRQ1_EDGE_REG: DIAG1_PHY_RX_EN_RFCU (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_EDGE_REG_DIAG1_PHY_TX_EN_RFCU_Pos (7UL)       /*!< CMAC CM_DIAG_IRQ1_EDGE_REG: DIAG1_PHY_TX_EN_RFCU (Bit 7)    */
+#define CMAC_CM_DIAG_IRQ1_EDGE_REG_DIAG1_PHY_TX_EN_RFCU_Msk (0x80UL)    /*!< CMAC CM_DIAG_IRQ1_EDGE_REG: DIAG1_PHY_TX_EN_RFCU (Bitfield-Mask: 0x01) */
+
+/* -------------------------  CMAC_CM_DIAG_IRQ1_STAT_REG  ------------------------- */
+#define CMAC_CM_DIAG_IRQ1_STAT_REG_DIAG1_DCF_21_Pos (0UL)               /*!< CMAC CM_DIAG_IRQ1_STAT_REG: DIAG1_DCF_21 (Bit 0)            */
+#define CMAC_CM_DIAG_IRQ1_STAT_REG_DIAG1_DCF_21_Msk (0x1UL)             /*!< CMAC CM_DIAG_IRQ1_STAT_REG: DIAG1_DCF_21 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_STAT_REG_DIAG1_DCF_22_Pos (1UL)               /*!< CMAC CM_DIAG_IRQ1_STAT_REG: DIAG1_DCF_22 (Bit 1)            */
+#define CMAC_CM_DIAG_IRQ1_STAT_REG_DIAG1_DCF_22_Msk (0x2UL)             /*!< CMAC CM_DIAG_IRQ1_STAT_REG: DIAG1_DCF_22 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_STAT_REG_DIAG1_DCF_23_Pos (2UL)               /*!< CMAC CM_DIAG_IRQ1_STAT_REG: DIAG1_DCF_23 (Bit 2)            */
+#define CMAC_CM_DIAG_IRQ1_STAT_REG_DIAG1_DCF_23_Msk (0x4UL)             /*!< CMAC CM_DIAG_IRQ1_STAT_REG: DIAG1_DCF_23 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_STAT_REG_DIAG1_DCF_24_Pos (3UL)               /*!< CMAC CM_DIAG_IRQ1_STAT_REG: DIAG1_DCF_24 (Bit 3)            */
+#define CMAC_CM_DIAG_IRQ1_STAT_REG_DIAG1_DCF_24_Msk (0x8UL)             /*!< CMAC CM_DIAG_IRQ1_STAT_REG: DIAG1_DCF_24 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_STAT_REG_DIAG1_DCF_25_Pos (4UL)               /*!< CMAC CM_DIAG_IRQ1_STAT_REG: DIAG1_DCF_25 (Bit 4)            */
+#define CMAC_CM_DIAG_IRQ1_STAT_REG_DIAG1_DCF_25_Msk (0x10UL)            /*!< CMAC CM_DIAG_IRQ1_STAT_REG: DIAG1_DCF_25 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_STAT_REG_DIAG1_DCF_26_Pos (5UL)               /*!< CMAC CM_DIAG_IRQ1_STAT_REG: DIAG1_DCF_26 (Bit 5)            */
+#define CMAC_CM_DIAG_IRQ1_STAT_REG_DIAG1_DCF_26_Msk (0x20UL)            /*!< CMAC CM_DIAG_IRQ1_STAT_REG: DIAG1_DCF_26 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_STAT_REG_DIAG1_PHY_RX_EN_RFCU_Pos (6UL)       /*!< CMAC CM_DIAG_IRQ1_STAT_REG: DIAG1_PHY_RX_EN_RFCU (Bit 6)    */
+#define CMAC_CM_DIAG_IRQ1_STAT_REG_DIAG1_PHY_RX_EN_RFCU_Msk (0x40UL)    /*!< CMAC CM_DIAG_IRQ1_STAT_REG: DIAG1_PHY_RX_EN_RFCU (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_STAT_REG_DIAG1_PHY_TX_EN_RFCU_Pos (7UL)       /*!< CMAC CM_DIAG_IRQ1_STAT_REG: DIAG1_PHY_TX_EN_RFCU (Bit 7)    */
+#define CMAC_CM_DIAG_IRQ1_STAT_REG_DIAG1_PHY_TX_EN_RFCU_Msk (0x80UL)    /*!< CMAC CM_DIAG_IRQ1_STAT_REG: DIAG1_PHY_TX_EN_RFCU (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_STAT_REG_DIAG1_SYNC_FOUND_Pos (8UL)           /*!< CMAC CM_DIAG_IRQ1_STAT_REG: DIAG1_SYNC_FOUND (Bit 8)        */
+#define CMAC_CM_DIAG_IRQ1_STAT_REG_DIAG1_SYNC_FOUND_Msk (0x100UL)       /*!< CMAC CM_DIAG_IRQ1_STAT_REG: DIAG1_SYNC_FOUND (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_STAT_REG_DIAG1_MATCH0101_Pos (9UL)            /*!< CMAC CM_DIAG_IRQ1_STAT_REG: DIAG1_MATCH0101 (Bit 9)         */
+#define CMAC_CM_DIAG_IRQ1_STAT_REG_DIAG1_MATCH0101_Msk (0x200UL)        /*!< CMAC CM_DIAG_IRQ1_STAT_REG: DIAG1_MATCH0101 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_STAT_REG_DIAG1_SIGNAL_DETECTED_Pos (10UL)     /*!< CMAC CM_DIAG_IRQ1_STAT_REG: DIAG1_SIGNAL_DETECTED (Bit 10)  */
+#define CMAC_CM_DIAG_IRQ1_STAT_REG_DIAG1_SIGNAL_DETECTED_Msk (0x400UL)  /*!< CMAC CM_DIAG_IRQ1_STAT_REG: DIAG1_SIGNAL_DETECTED (Bitfield-Mask: 0x01) */
+
+/* -------------------------  CMAC_CM_DIAG_IRQ1_MASK_REG  ------------------------- */
+#define CMAC_CM_DIAG_IRQ1_MASK_REG_DIAG1_DCF_21_Pos (0UL)               /*!< CMAC CM_DIAG_IRQ1_MASK_REG: DIAG1_DCF_21 (Bit 0)            */
+#define CMAC_CM_DIAG_IRQ1_MASK_REG_DIAG1_DCF_21_Msk (0x1UL)             /*!< CMAC CM_DIAG_IRQ1_MASK_REG: DIAG1_DCF_21 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_MASK_REG_DIAG1_DCF_22_Pos (1UL)               /*!< CMAC CM_DIAG_IRQ1_MASK_REG: DIAG1_DCF_22 (Bit 1)            */
+#define CMAC_CM_DIAG_IRQ1_MASK_REG_DIAG1_DCF_22_Msk (0x2UL)             /*!< CMAC CM_DIAG_IRQ1_MASK_REG: DIAG1_DCF_22 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_MASK_REG_DIAG1_DCF_23_Pos (2UL)               /*!< CMAC CM_DIAG_IRQ1_MASK_REG: DIAG1_DCF_23 (Bit 2)            */
+#define CMAC_CM_DIAG_IRQ1_MASK_REG_DIAG1_DCF_23_Msk (0x4UL)             /*!< CMAC CM_DIAG_IRQ1_MASK_REG: DIAG1_DCF_23 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_MASK_REG_DIAG1_DCF_24_Pos (3UL)               /*!< CMAC CM_DIAG_IRQ1_MASK_REG: DIAG1_DCF_24 (Bit 3)            */
+#define CMAC_CM_DIAG_IRQ1_MASK_REG_DIAG1_DCF_24_Msk (0x8UL)             /*!< CMAC CM_DIAG_IRQ1_MASK_REG: DIAG1_DCF_24 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_MASK_REG_DIAG1_DCF_25_Pos (4UL)               /*!< CMAC CM_DIAG_IRQ1_MASK_REG: DIAG1_DCF_25 (Bit 4)            */
+#define CMAC_CM_DIAG_IRQ1_MASK_REG_DIAG1_DCF_25_Msk (0x10UL)            /*!< CMAC CM_DIAG_IRQ1_MASK_REG: DIAG1_DCF_25 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_MASK_REG_DIAG1_DCF_26_Pos (5UL)               /*!< CMAC CM_DIAG_IRQ1_MASK_REG: DIAG1_DCF_26 (Bit 5)            */
+#define CMAC_CM_DIAG_IRQ1_MASK_REG_DIAG1_DCF_26_Msk (0x20UL)            /*!< CMAC CM_DIAG_IRQ1_MASK_REG: DIAG1_DCF_26 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_MASK_REG_DIAG1_PHY_RX_EN_RFCU_Pos (6UL)       /*!< CMAC CM_DIAG_IRQ1_MASK_REG: DIAG1_PHY_RX_EN_RFCU (Bit 6)    */
+#define CMAC_CM_DIAG_IRQ1_MASK_REG_DIAG1_PHY_RX_EN_RFCU_Msk (0x40UL)    /*!< CMAC CM_DIAG_IRQ1_MASK_REG: DIAG1_PHY_RX_EN_RFCU (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_MASK_REG_DIAG1_PHY_TX_EN_RFCU_Pos (7UL)       /*!< CMAC CM_DIAG_IRQ1_MASK_REG: DIAG1_PHY_TX_EN_RFCU (Bit 7)    */
+#define CMAC_CM_DIAG_IRQ1_MASK_REG_DIAG1_PHY_TX_EN_RFCU_Msk (0x80UL)    /*!< CMAC CM_DIAG_IRQ1_MASK_REG: DIAG1_PHY_TX_EN_RFCU (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_MASK_REG_DIAG1_SYNC_FOUND_Pos (8UL)           /*!< CMAC CM_DIAG_IRQ1_MASK_REG: DIAG1_SYNC_FOUND (Bit 8)        */
+#define CMAC_CM_DIAG_IRQ1_MASK_REG_DIAG1_SYNC_FOUND_Msk (0x100UL)       /*!< CMAC CM_DIAG_IRQ1_MASK_REG: DIAG1_SYNC_FOUND (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_MASK_REG_DIAG1_MATCH0101_Pos (9UL)            /*!< CMAC CM_DIAG_IRQ1_MASK_REG: DIAG1_MATCH0101 (Bit 9)         */
+#define CMAC_CM_DIAG_IRQ1_MASK_REG_DIAG1_MATCH0101_Msk (0x200UL)        /*!< CMAC CM_DIAG_IRQ1_MASK_REG: DIAG1_MATCH0101 (Bitfield-Mask: 0x01) */
+#define CMAC_CM_DIAG_IRQ1_MASK_REG_DIAG1_SIGNAL_DETECTED_Pos (10UL)     /*!< CMAC CM_DIAG_IRQ1_MASK_REG: DIAG1_SIGNAL_DETECTED (Bit 10)  */
+#define CMAC_CM_DIAG_IRQ1_MASK_REG_DIAG1_SIGNAL_DETECTED_Msk (0x400UL)  /*!< CMAC CM_DIAG_IRQ1_MASK_REG: DIAG1_SIGNAL_DETECTED (Bitfield-Mask: 0x01) */
+
+
+/* ================================================================================ */
+/* ================     struct 'CMAC_TIMER_SLP' Position & Mask    ================ */
+/* ================================================================================ */
+
+
+/* -----------------------  CMAC_TIMER_SLP_CM_SLP_CTRL_REG  ----------------------- */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL_REG_SLP_TIMER_SW_Pos (0UL)           /*!< CMAC_TIMER_SLP CM_SLP_CTRL_REG: SLP_TIMER_SW (Bit 0)        */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL_REG_SLP_TIMER_SW_Msk (0x1UL)         /*!< CMAC_TIMER_SLP CM_SLP_CTRL_REG: SLP_TIMER_SW (Bitfield-Mask: 0x01) */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL_REG_SLP_TIMER_CNT_SIGN_Pos (5UL)     /*!< CMAC_TIMER_SLP CM_SLP_CTRL_REG: SLP_TIMER_CNT_SIGN (Bit 5)  */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL_REG_SLP_TIMER_CNT_SIGN_Msk (0x20UL)  /*!< CMAC_TIMER_SLP CM_SLP_CTRL_REG: SLP_TIMER_CNT_SIGN (Bitfield-Mask: 0x01) */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL_REG_LP_CLK_STATE_Pos (6UL)           /*!< CMAC_TIMER_SLP CM_SLP_CTRL_REG: LP_CLK_STATE (Bit 6)        */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL_REG_LP_CLK_STATE_Msk (0x40UL)        /*!< CMAC_TIMER_SLP CM_SLP_CTRL_REG: LP_CLK_STATE (Bitfield-Mask: 0x01) */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL_REG_SLP_TIMER_ACTIVE_Pos (7UL)       /*!< CMAC_TIMER_SLP CM_SLP_CTRL_REG: SLP_TIMER_ACTIVE (Bit 7)    */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL_REG_SLP_TIMER_ACTIVE_Msk (0x80UL)    /*!< CMAC_TIMER_SLP CM_SLP_CTRL_REG: SLP_TIMER_ACTIVE (Bitfield-Mask: 0x01) */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL_REG_TCLK_FROM_PCLK_Pos (8UL)         /*!< CMAC_TIMER_SLP CM_SLP_CTRL_REG: TCLK_FROM_PCLK (Bit 8)      */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL_REG_TCLK_FROM_PCLK_Msk (0x100UL)     /*!< CMAC_TIMER_SLP CM_SLP_CTRL_REG: TCLK_FROM_PCLK (Bitfield-Mask: 0x01) */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL_REG_TCLK_FROM_LPCLK_Pos (9UL)        /*!< CMAC_TIMER_SLP CM_SLP_CTRL_REG: TCLK_FROM_LPCLK (Bit 9)     */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL_REG_TCLK_FROM_LPCLK_Msk (0x200UL)    /*!< CMAC_TIMER_SLP CM_SLP_CTRL_REG: TCLK_FROM_LPCLK (Bitfield-Mask: 0x01) */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL_REG_CMAC_WAKEUP_ON_SWD_EN_Pos (24UL) /*!< CMAC_TIMER_SLP CM_SLP_CTRL_REG: CMAC_WAKEUP_ON_SWD_EN (Bit 24) */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL_REG_CMAC_WAKEUP_ON_SWD_EN_Msk (0x1000000UL) /*!< CMAC_TIMER_SLP CM_SLP_CTRL_REG: CMAC_WAKEUP_ON_SWD_EN (Bitfield-Mask: 0x01) */
+
+/* -----------------------  CMAC_TIMER_SLP_CM_SLP_CTRL2_REG  ---------------------- */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL2_REG_SLP_TIMER_IRQ_STATE_Pos (0UL)   /*!< CMAC_TIMER_SLP CM_SLP_CTRL2_REG: SLP_TIMER_IRQ_STATE (Bit 0) */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL2_REG_SLP_TIMER_IRQ_STATE_Msk (0x1UL) /*!< CMAC_TIMER_SLP CM_SLP_CTRL2_REG: SLP_TIMER_IRQ_STATE (Bitfield-Mask: 0x01) */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL2_REG_SLP_TIMER_IRQ_CLR_Pos (1UL)     /*!< CMAC_TIMER_SLP CM_SLP_CTRL2_REG: SLP_TIMER_IRQ_CLR (Bit 1)  */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL2_REG_SLP_TIMER_IRQ_CLR_Msk (0x2UL)   /*!< CMAC_TIMER_SLP CM_SLP_CTRL2_REG: SLP_TIMER_IRQ_CLR (Bitfield-Mask: 0x01) */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL2_REG_SLP_TIMER_IRQ_SET_Pos (2UL)     /*!< CMAC_TIMER_SLP CM_SLP_CTRL2_REG: SLP_TIMER_IRQ_SET (Bit 2)  */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL2_REG_SLP_TIMER_IRQ_SET_Msk (0x4UL)   /*!< CMAC_TIMER_SLP CM_SLP_CTRL2_REG: SLP_TIMER_IRQ_SET (Bitfield-Mask: 0x01) */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL2_REG_SLP_TIMER_CNT_SIGN_Pos (5UL)    /*!< CMAC_TIMER_SLP CM_SLP_CTRL2_REG: SLP_TIMER_CNT_SIGN (Bit 5) */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL2_REG_SLP_TIMER_CNT_SIGN_Msk (0x20UL) /*!< CMAC_TIMER_SLP CM_SLP_CTRL2_REG: SLP_TIMER_CNT_SIGN (Bitfield-Mask: 0x01) */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL2_REG_LP_CLK_STATE_Pos (6UL)          /*!< CMAC_TIMER_SLP CM_SLP_CTRL2_REG: LP_CLK_STATE (Bit 6)       */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL2_REG_LP_CLK_STATE_Msk (0x40UL)       /*!< CMAC_TIMER_SLP CM_SLP_CTRL2_REG: LP_CLK_STATE (Bitfield-Mask: 0x01) */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL2_REG_SLP_TIMER_ACTIVE_Pos (7UL)      /*!< CMAC_TIMER_SLP CM_SLP_CTRL2_REG: SLP_TIMER_ACTIVE (Bit 7)   */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL2_REG_SLP_TIMER_ACTIVE_Msk (0x80UL)   /*!< CMAC_TIMER_SLP CM_SLP_CTRL2_REG: SLP_TIMER_ACTIVE (Bitfield-Mask: 0x01) */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL2_REG_CMAC_WAKEUP_ON_SWD_STATE_Pos (8UL) /*!< CMAC_TIMER_SLP CM_SLP_CTRL2_REG: CMAC_WAKEUP_ON_SWD_STATE (Bit 8) */
+#define CMAC_TIMER_SLP_CM_SLP_CTRL2_REG_CMAC_WAKEUP_ON_SWD_STATE_Msk (0x100UL) /*!< CMAC_TIMER_SLP CM_SLP_CTRL2_REG: CMAC_WAKEUP_ON_SWD_STATE (Bitfield-Mask: 0x01) */
+
+/* -----------------------  CMAC_TIMER_SLP_CM_SLP_TIMER_REG  ---------------------- */
+#define CMAC_TIMER_SLP_CM_SLP_TIMER_REG_CM_SLP_TIMER_VALUE_Pos (0UL)    /*!< CMAC_TIMER_SLP CM_SLP_TIMER_REG: CM_SLP_TIMER_VALUE (Bit 0) */
+#define CMAC_TIMER_SLP_CM_SLP_TIMER_REG_CM_SLP_TIMER_VALUE_Msk (0xffffffffUL) /*!< CMAC_TIMER_SLP CM_SLP_TIMER_REG: CM_SLP_TIMER_VALUE (Bitfield-Mask: 0xffffffff) */
+
+/* ==================================================  PDC_ACKNOWLEDGE_REG  ================================================== */
+#define PDC_PDC_ACKNOWLEDGE_REG_PDC_ACKNOWLEDGE_Pos (0UL)           /*!< PDC PDC_ACKNOWLEDGE_REG: PDC_ACKNOWLEDGE (Bit 0)      */
+#define PDC_PDC_ACKNOWLEDGE_REG_PDC_ACKNOWLEDGE_Msk (0x1fUL)        /*!< PDC PDC_ACKNOWLEDGE_REG: PDC_ACKNOWLEDGE (Bitfield-Mask: 0x1f) */
+/* =====================================================  PDC_CTRL0_REG  ===================================================== */
+#define PDC_PDC_CTRL0_REG_PDC_MASTER_Pos  (11UL)                    /*!< PDC PDC_CTRL0_REG: PDC_MASTER (Bit 11)                */
+#define PDC_PDC_CTRL0_REG_PDC_MASTER_Msk  (0x1800UL)                /*!< PDC PDC_CTRL0_REG: PDC_MASTER (Bitfield-Mask: 0x03)   */
+#define PDC_PDC_CTRL0_REG_EN_COM_Pos      (10UL)                    /*!< PDC PDC_CTRL0_REG: EN_COM (Bit 10)                    */
+#define PDC_PDC_CTRL0_REG_EN_COM_Msk      (0x400UL)                 /*!< PDC PDC_CTRL0_REG: EN_COM (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL0_REG_EN_PER_Pos      (9UL)                     /*!< PDC PDC_CTRL0_REG: EN_PER (Bit 9)                     */
+#define PDC_PDC_CTRL0_REG_EN_PER_Msk      (0x200UL)                 /*!< PDC PDC_CTRL0_REG: EN_PER (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL0_REG_EN_TMR_Pos      (8UL)                     /*!< PDC PDC_CTRL0_REG: EN_TMR (Bit 8)                     */
+#define PDC_PDC_CTRL0_REG_EN_TMR_Msk      (0x100UL)                 /*!< PDC PDC_CTRL0_REG: EN_TMR (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL0_REG_EN_XTAL_Pos     (7UL)                     /*!< PDC PDC_CTRL0_REG: EN_XTAL (Bit 7)                    */
+#define PDC_PDC_CTRL0_REG_EN_XTAL_Msk     (0x80UL)                  /*!< PDC PDC_CTRL0_REG: EN_XTAL (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL0_REG_TRIG_ID_Pos     (2UL)                     /*!< PDC PDC_CTRL0_REG: TRIG_ID (Bit 2)                    */
+#define PDC_PDC_CTRL0_REG_TRIG_ID_Msk     (0x7cUL)                  /*!< PDC PDC_CTRL0_REG: TRIG_ID (Bitfield-Mask: 0x1f)      */
+#define PDC_PDC_CTRL0_REG_TRIG_SELECT_Pos (0UL)                     /*!< PDC PDC_CTRL0_REG: TRIG_SELECT (Bit 0)                */
+#define PDC_PDC_CTRL0_REG_TRIG_SELECT_Msk (0x3UL)                   /*!< PDC PDC_CTRL0_REG: TRIG_SELECT (Bitfield-Mask: 0x03)  */
+/* ====================================================  PDC_CTRL10_REG  ===================================================== */
+#define PDC_PDC_CTRL10_REG_PDC_MASTER_Pos (11UL)                    /*!< PDC PDC_CTRL10_REG: PDC_MASTER (Bit 11)               */
+#define PDC_PDC_CTRL10_REG_PDC_MASTER_Msk (0x1800UL)                /*!< PDC PDC_CTRL10_REG: PDC_MASTER (Bitfield-Mask: 0x03)  */
+#define PDC_PDC_CTRL10_REG_EN_COM_Pos     (10UL)                    /*!< PDC PDC_CTRL10_REG: EN_COM (Bit 10)                   */
+#define PDC_PDC_CTRL10_REG_EN_COM_Msk     (0x400UL)                 /*!< PDC PDC_CTRL10_REG: EN_COM (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL10_REG_EN_PER_Pos     (9UL)                     /*!< PDC PDC_CTRL10_REG: EN_PER (Bit 9)                    */
+#define PDC_PDC_CTRL10_REG_EN_PER_Msk     (0x200UL)                 /*!< PDC PDC_CTRL10_REG: EN_PER (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL10_REG_EN_TMR_Pos     (8UL)                     /*!< PDC PDC_CTRL10_REG: EN_TMR (Bit 8)                    */
+#define PDC_PDC_CTRL10_REG_EN_TMR_Msk     (0x100UL)                 /*!< PDC PDC_CTRL10_REG: EN_TMR (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL10_REG_EN_XTAL_Pos    (7UL)                     /*!< PDC PDC_CTRL10_REG: EN_XTAL (Bit 7)                   */
+#define PDC_PDC_CTRL10_REG_EN_XTAL_Msk    (0x80UL)                  /*!< PDC PDC_CTRL10_REG: EN_XTAL (Bitfield-Mask: 0x01)     */
+#define PDC_PDC_CTRL10_REG_TRIG_ID_Pos    (2UL)                     /*!< PDC PDC_CTRL10_REG: TRIG_ID (Bit 2)                   */
+#define PDC_PDC_CTRL10_REG_TRIG_ID_Msk    (0x7cUL)                  /*!< PDC PDC_CTRL10_REG: TRIG_ID (Bitfield-Mask: 0x1f)     */
+#define PDC_PDC_CTRL10_REG_TRIG_SELECT_Pos (0UL)                    /*!< PDC PDC_CTRL10_REG: TRIG_SELECT (Bit 0)               */
+#define PDC_PDC_CTRL10_REG_TRIG_SELECT_Msk (0x3UL)                  /*!< PDC PDC_CTRL10_REG: TRIG_SELECT (Bitfield-Mask: 0x03) */
+/* ====================================================  PDC_CTRL11_REG  ===================================================== */
+#define PDC_PDC_CTRL11_REG_PDC_MASTER_Pos (11UL)                    /*!< PDC PDC_CTRL11_REG: PDC_MASTER (Bit 11)               */
+#define PDC_PDC_CTRL11_REG_PDC_MASTER_Msk (0x1800UL)                /*!< PDC PDC_CTRL11_REG: PDC_MASTER (Bitfield-Mask: 0x03)  */
+#define PDC_PDC_CTRL11_REG_EN_COM_Pos     (10UL)                    /*!< PDC PDC_CTRL11_REG: EN_COM (Bit 10)                   */
+#define PDC_PDC_CTRL11_REG_EN_COM_Msk     (0x400UL)                 /*!< PDC PDC_CTRL11_REG: EN_COM (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL11_REG_EN_PER_Pos     (9UL)                     /*!< PDC PDC_CTRL11_REG: EN_PER (Bit 9)                    */
+#define PDC_PDC_CTRL11_REG_EN_PER_Msk     (0x200UL)                 /*!< PDC PDC_CTRL11_REG: EN_PER (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL11_REG_EN_TMR_Pos     (8UL)                     /*!< PDC PDC_CTRL11_REG: EN_TMR (Bit 8)                    */
+#define PDC_PDC_CTRL11_REG_EN_TMR_Msk     (0x100UL)                 /*!< PDC PDC_CTRL11_REG: EN_TMR (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL11_REG_EN_XTAL_Pos    (7UL)                     /*!< PDC PDC_CTRL11_REG: EN_XTAL (Bit 7)                   */
+#define PDC_PDC_CTRL11_REG_EN_XTAL_Msk    (0x80UL)                  /*!< PDC PDC_CTRL11_REG: EN_XTAL (Bitfield-Mask: 0x01)     */
+#define PDC_PDC_CTRL11_REG_TRIG_ID_Pos    (2UL)                     /*!< PDC PDC_CTRL11_REG: TRIG_ID (Bit 2)                   */
+#define PDC_PDC_CTRL11_REG_TRIG_ID_Msk    (0x7cUL)                  /*!< PDC PDC_CTRL11_REG: TRIG_ID (Bitfield-Mask: 0x1f)     */
+#define PDC_PDC_CTRL11_REG_TRIG_SELECT_Pos (0UL)                    /*!< PDC PDC_CTRL11_REG: TRIG_SELECT (Bit 0)               */
+#define PDC_PDC_CTRL11_REG_TRIG_SELECT_Msk (0x3UL)                  /*!< PDC PDC_CTRL11_REG: TRIG_SELECT (Bitfield-Mask: 0x03) */
+/* ====================================================  PDC_CTRL12_REG  ===================================================== */
+#define PDC_PDC_CTRL12_REG_PDC_MASTER_Pos (11UL)                    /*!< PDC PDC_CTRL12_REG: PDC_MASTER (Bit 11)               */
+#define PDC_PDC_CTRL12_REG_PDC_MASTER_Msk (0x1800UL)                /*!< PDC PDC_CTRL12_REG: PDC_MASTER (Bitfield-Mask: 0x03)  */
+#define PDC_PDC_CTRL12_REG_EN_COM_Pos     (10UL)                    /*!< PDC PDC_CTRL12_REG: EN_COM (Bit 10)                   */
+#define PDC_PDC_CTRL12_REG_EN_COM_Msk     (0x400UL)                 /*!< PDC PDC_CTRL12_REG: EN_COM (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL12_REG_EN_PER_Pos     (9UL)                     /*!< PDC PDC_CTRL12_REG: EN_PER (Bit 9)                    */
+#define PDC_PDC_CTRL12_REG_EN_PER_Msk     (0x200UL)                 /*!< PDC PDC_CTRL12_REG: EN_PER (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL12_REG_EN_TMR_Pos     (8UL)                     /*!< PDC PDC_CTRL12_REG: EN_TMR (Bit 8)                    */
+#define PDC_PDC_CTRL12_REG_EN_TMR_Msk     (0x100UL)                 /*!< PDC PDC_CTRL12_REG: EN_TMR (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL12_REG_EN_XTAL_Pos    (7UL)                     /*!< PDC PDC_CTRL12_REG: EN_XTAL (Bit 7)                   */
+#define PDC_PDC_CTRL12_REG_EN_XTAL_Msk    (0x80UL)                  /*!< PDC PDC_CTRL12_REG: EN_XTAL (Bitfield-Mask: 0x01)     */
+#define PDC_PDC_CTRL12_REG_TRIG_ID_Pos    (2UL)                     /*!< PDC PDC_CTRL12_REG: TRIG_ID (Bit 2)                   */
+#define PDC_PDC_CTRL12_REG_TRIG_ID_Msk    (0x7cUL)                  /*!< PDC PDC_CTRL12_REG: TRIG_ID (Bitfield-Mask: 0x1f)     */
+#define PDC_PDC_CTRL12_REG_TRIG_SELECT_Pos (0UL)                    /*!< PDC PDC_CTRL12_REG: TRIG_SELECT (Bit 0)               */
+#define PDC_PDC_CTRL12_REG_TRIG_SELECT_Msk (0x3UL)                  /*!< PDC PDC_CTRL12_REG: TRIG_SELECT (Bitfield-Mask: 0x03) */
+/* ====================================================  PDC_CTRL13_REG  ===================================================== */
+#define PDC_PDC_CTRL13_REG_PDC_MASTER_Pos (11UL)                    /*!< PDC PDC_CTRL13_REG: PDC_MASTER (Bit 11)               */
+#define PDC_PDC_CTRL13_REG_PDC_MASTER_Msk (0x1800UL)                /*!< PDC PDC_CTRL13_REG: PDC_MASTER (Bitfield-Mask: 0x03)  */
+#define PDC_PDC_CTRL13_REG_EN_COM_Pos     (10UL)                    /*!< PDC PDC_CTRL13_REG: EN_COM (Bit 10)                   */
+#define PDC_PDC_CTRL13_REG_EN_COM_Msk     (0x400UL)                 /*!< PDC PDC_CTRL13_REG: EN_COM (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL13_REG_EN_PER_Pos     (9UL)                     /*!< PDC PDC_CTRL13_REG: EN_PER (Bit 9)                    */
+#define PDC_PDC_CTRL13_REG_EN_PER_Msk     (0x200UL)                 /*!< PDC PDC_CTRL13_REG: EN_PER (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL13_REG_EN_TMR_Pos     (8UL)                     /*!< PDC PDC_CTRL13_REG: EN_TMR (Bit 8)                    */
+#define PDC_PDC_CTRL13_REG_EN_TMR_Msk     (0x100UL)                 /*!< PDC PDC_CTRL13_REG: EN_TMR (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL13_REG_EN_XTAL_Pos    (7UL)                     /*!< PDC PDC_CTRL13_REG: EN_XTAL (Bit 7)                   */
+#define PDC_PDC_CTRL13_REG_EN_XTAL_Msk    (0x80UL)                  /*!< PDC PDC_CTRL13_REG: EN_XTAL (Bitfield-Mask: 0x01)     */
+#define PDC_PDC_CTRL13_REG_TRIG_ID_Pos    (2UL)                     /*!< PDC PDC_CTRL13_REG: TRIG_ID (Bit 2)                   */
+#define PDC_PDC_CTRL13_REG_TRIG_ID_Msk    (0x7cUL)                  /*!< PDC PDC_CTRL13_REG: TRIG_ID (Bitfield-Mask: 0x1f)     */
+#define PDC_PDC_CTRL13_REG_TRIG_SELECT_Pos (0UL)                    /*!< PDC PDC_CTRL13_REG: TRIG_SELECT (Bit 0)               */
+#define PDC_PDC_CTRL13_REG_TRIG_SELECT_Msk (0x3UL)                  /*!< PDC PDC_CTRL13_REG: TRIG_SELECT (Bitfield-Mask: 0x03) */
+/* ====================================================  PDC_CTRL14_REG  ===================================================== */
+#define PDC_PDC_CTRL14_REG_PDC_MASTER_Pos (11UL)                    /*!< PDC PDC_CTRL14_REG: PDC_MASTER (Bit 11)               */
+#define PDC_PDC_CTRL14_REG_PDC_MASTER_Msk (0x1800UL)                /*!< PDC PDC_CTRL14_REG: PDC_MASTER (Bitfield-Mask: 0x03)  */
+#define PDC_PDC_CTRL14_REG_EN_COM_Pos     (10UL)                    /*!< PDC PDC_CTRL14_REG: EN_COM (Bit 10)                   */
+#define PDC_PDC_CTRL14_REG_EN_COM_Msk     (0x400UL)                 /*!< PDC PDC_CTRL14_REG: EN_COM (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL14_REG_EN_PER_Pos     (9UL)                     /*!< PDC PDC_CTRL14_REG: EN_PER (Bit 9)                    */
+#define PDC_PDC_CTRL14_REG_EN_PER_Msk     (0x200UL)                 /*!< PDC PDC_CTRL14_REG: EN_PER (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL14_REG_EN_TMR_Pos     (8UL)                     /*!< PDC PDC_CTRL14_REG: EN_TMR (Bit 8)                    */
+#define PDC_PDC_CTRL14_REG_EN_TMR_Msk     (0x100UL)                 /*!< PDC PDC_CTRL14_REG: EN_TMR (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL14_REG_EN_XTAL_Pos    (7UL)                     /*!< PDC PDC_CTRL14_REG: EN_XTAL (Bit 7)                   */
+#define PDC_PDC_CTRL14_REG_EN_XTAL_Msk    (0x80UL)                  /*!< PDC PDC_CTRL14_REG: EN_XTAL (Bitfield-Mask: 0x01)     */
+#define PDC_PDC_CTRL14_REG_TRIG_ID_Pos    (2UL)                     /*!< PDC PDC_CTRL14_REG: TRIG_ID (Bit 2)                   */
+#define PDC_PDC_CTRL14_REG_TRIG_ID_Msk    (0x7cUL)                  /*!< PDC PDC_CTRL14_REG: TRIG_ID (Bitfield-Mask: 0x1f)     */
+#define PDC_PDC_CTRL14_REG_TRIG_SELECT_Pos (0UL)                    /*!< PDC PDC_CTRL14_REG: TRIG_SELECT (Bit 0)               */
+#define PDC_PDC_CTRL14_REG_TRIG_SELECT_Msk (0x3UL)                  /*!< PDC PDC_CTRL14_REG: TRIG_SELECT (Bitfield-Mask: 0x03) */
+/* ====================================================  PDC_CTRL15_REG  ===================================================== */
+#define PDC_PDC_CTRL15_REG_PDC_MASTER_Pos (11UL)                    /*!< PDC PDC_CTRL15_REG: PDC_MASTER (Bit 11)               */
+#define PDC_PDC_CTRL15_REG_PDC_MASTER_Msk (0x1800UL)                /*!< PDC PDC_CTRL15_REG: PDC_MASTER (Bitfield-Mask: 0x03)  */
+#define PDC_PDC_CTRL15_REG_EN_COM_Pos     (10UL)                    /*!< PDC PDC_CTRL15_REG: EN_COM (Bit 10)                   */
+#define PDC_PDC_CTRL15_REG_EN_COM_Msk     (0x400UL)                 /*!< PDC PDC_CTRL15_REG: EN_COM (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL15_REG_EN_PER_Pos     (9UL)                     /*!< PDC PDC_CTRL15_REG: EN_PER (Bit 9)                    */
+#define PDC_PDC_CTRL15_REG_EN_PER_Msk     (0x200UL)                 /*!< PDC PDC_CTRL15_REG: EN_PER (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL15_REG_EN_TMR_Pos     (8UL)                     /*!< PDC PDC_CTRL15_REG: EN_TMR (Bit 8)                    */
+#define PDC_PDC_CTRL15_REG_EN_TMR_Msk     (0x100UL)                 /*!< PDC PDC_CTRL15_REG: EN_TMR (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL15_REG_EN_XTAL_Pos    (7UL)                     /*!< PDC PDC_CTRL15_REG: EN_XTAL (Bit 7)                   */
+#define PDC_PDC_CTRL15_REG_EN_XTAL_Msk    (0x80UL)                  /*!< PDC PDC_CTRL15_REG: EN_XTAL (Bitfield-Mask: 0x01)     */
+#define PDC_PDC_CTRL15_REG_TRIG_ID_Pos    (2UL)                     /*!< PDC PDC_CTRL15_REG: TRIG_ID (Bit 2)                   */
+#define PDC_PDC_CTRL15_REG_TRIG_ID_Msk    (0x7cUL)                  /*!< PDC PDC_CTRL15_REG: TRIG_ID (Bitfield-Mask: 0x1f)     */
+#define PDC_PDC_CTRL15_REG_TRIG_SELECT_Pos (0UL)                    /*!< PDC PDC_CTRL15_REG: TRIG_SELECT (Bit 0)               */
+#define PDC_PDC_CTRL15_REG_TRIG_SELECT_Msk (0x3UL)                  /*!< PDC PDC_CTRL15_REG: TRIG_SELECT (Bitfield-Mask: 0x03) */
+/* =====================================================  PDC_CTRL1_REG  ===================================================== */
+#define PDC_PDC_CTRL1_REG_PDC_MASTER_Pos  (11UL)                    /*!< PDC PDC_CTRL1_REG: PDC_MASTER (Bit 11)                */
+#define PDC_PDC_CTRL1_REG_PDC_MASTER_Msk  (0x1800UL)                /*!< PDC PDC_CTRL1_REG: PDC_MASTER (Bitfield-Mask: 0x03)   */
+#define PDC_PDC_CTRL1_REG_EN_COM_Pos      (10UL)                    /*!< PDC PDC_CTRL1_REG: EN_COM (Bit 10)                    */
+#define PDC_PDC_CTRL1_REG_EN_COM_Msk      (0x400UL)                 /*!< PDC PDC_CTRL1_REG: EN_COM (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL1_REG_EN_PER_Pos      (9UL)                     /*!< PDC PDC_CTRL1_REG: EN_PER (Bit 9)                     */
+#define PDC_PDC_CTRL1_REG_EN_PER_Msk      (0x200UL)                 /*!< PDC PDC_CTRL1_REG: EN_PER (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL1_REG_EN_TMR_Pos      (8UL)                     /*!< PDC PDC_CTRL1_REG: EN_TMR (Bit 8)                     */
+#define PDC_PDC_CTRL1_REG_EN_TMR_Msk      (0x100UL)                 /*!< PDC PDC_CTRL1_REG: EN_TMR (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL1_REG_EN_XTAL_Pos     (7UL)                     /*!< PDC PDC_CTRL1_REG: EN_XTAL (Bit 7)                    */
+#define PDC_PDC_CTRL1_REG_EN_XTAL_Msk     (0x80UL)                  /*!< PDC PDC_CTRL1_REG: EN_XTAL (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL1_REG_TRIG_ID_Pos     (2UL)                     /*!< PDC PDC_CTRL1_REG: TRIG_ID (Bit 2)                    */
+#define PDC_PDC_CTRL1_REG_TRIG_ID_Msk     (0x7cUL)                  /*!< PDC PDC_CTRL1_REG: TRIG_ID (Bitfield-Mask: 0x1f)      */
+#define PDC_PDC_CTRL1_REG_TRIG_SELECT_Pos (0UL)                     /*!< PDC PDC_CTRL1_REG: TRIG_SELECT (Bit 0)                */
+#define PDC_PDC_CTRL1_REG_TRIG_SELECT_Msk (0x3UL)                   /*!< PDC PDC_CTRL1_REG: TRIG_SELECT (Bitfield-Mask: 0x03)  */
+/* =====================================================  PDC_CTRL2_REG  ===================================================== */
+#define PDC_PDC_CTRL2_REG_PDC_MASTER_Pos  (11UL)                    /*!< PDC PDC_CTRL2_REG: PDC_MASTER (Bit 11)                */
+#define PDC_PDC_CTRL2_REG_PDC_MASTER_Msk  (0x1800UL)                /*!< PDC PDC_CTRL2_REG: PDC_MASTER (Bitfield-Mask: 0x03)   */
+#define PDC_PDC_CTRL2_REG_EN_COM_Pos      (10UL)                    /*!< PDC PDC_CTRL2_REG: EN_COM (Bit 10)                    */
+#define PDC_PDC_CTRL2_REG_EN_COM_Msk      (0x400UL)                 /*!< PDC PDC_CTRL2_REG: EN_COM (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL2_REG_EN_PER_Pos      (9UL)                     /*!< PDC PDC_CTRL2_REG: EN_PER (Bit 9)                     */
+#define PDC_PDC_CTRL2_REG_EN_PER_Msk      (0x200UL)                 /*!< PDC PDC_CTRL2_REG: EN_PER (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL2_REG_EN_TMR_Pos      (8UL)                     /*!< PDC PDC_CTRL2_REG: EN_TMR (Bit 8)                     */
+#define PDC_PDC_CTRL2_REG_EN_TMR_Msk      (0x100UL)                 /*!< PDC PDC_CTRL2_REG: EN_TMR (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL2_REG_EN_XTAL_Pos     (7UL)                     /*!< PDC PDC_CTRL2_REG: EN_XTAL (Bit 7)                    */
+#define PDC_PDC_CTRL2_REG_EN_XTAL_Msk     (0x80UL)                  /*!< PDC PDC_CTRL2_REG: EN_XTAL (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL2_REG_TRIG_ID_Pos     (2UL)                     /*!< PDC PDC_CTRL2_REG: TRIG_ID (Bit 2)                    */
+#define PDC_PDC_CTRL2_REG_TRIG_ID_Msk     (0x7cUL)                  /*!< PDC PDC_CTRL2_REG: TRIG_ID (Bitfield-Mask: 0x1f)      */
+#define PDC_PDC_CTRL2_REG_TRIG_SELECT_Pos (0UL)                     /*!< PDC PDC_CTRL2_REG: TRIG_SELECT (Bit 0)                */
+#define PDC_PDC_CTRL2_REG_TRIG_SELECT_Msk (0x3UL)                   /*!< PDC PDC_CTRL2_REG: TRIG_SELECT (Bitfield-Mask: 0x03)  */
+/* =====================================================  PDC_CTRL3_REG  ===================================================== */
+#define PDC_PDC_CTRL3_REG_PDC_MASTER_Pos  (11UL)                    /*!< PDC PDC_CTRL3_REG: PDC_MASTER (Bit 11)                */
+#define PDC_PDC_CTRL3_REG_PDC_MASTER_Msk  (0x1800UL)                /*!< PDC PDC_CTRL3_REG: PDC_MASTER (Bitfield-Mask: 0x03)   */
+#define PDC_PDC_CTRL3_REG_EN_COM_Pos      (10UL)                    /*!< PDC PDC_CTRL3_REG: EN_COM (Bit 10)                    */
+#define PDC_PDC_CTRL3_REG_EN_COM_Msk      (0x400UL)                 /*!< PDC PDC_CTRL3_REG: EN_COM (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL3_REG_EN_PER_Pos      (9UL)                     /*!< PDC PDC_CTRL3_REG: EN_PER (Bit 9)                     */
+#define PDC_PDC_CTRL3_REG_EN_PER_Msk      (0x200UL)                 /*!< PDC PDC_CTRL3_REG: EN_PER (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL3_REG_EN_TMR_Pos      (8UL)                     /*!< PDC PDC_CTRL3_REG: EN_TMR (Bit 8)                     */
+#define PDC_PDC_CTRL3_REG_EN_TMR_Msk      (0x100UL)                 /*!< PDC PDC_CTRL3_REG: EN_TMR (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL3_REG_EN_XTAL_Pos     (7UL)                     /*!< PDC PDC_CTRL3_REG: EN_XTAL (Bit 7)                    */
+#define PDC_PDC_CTRL3_REG_EN_XTAL_Msk     (0x80UL)                  /*!< PDC PDC_CTRL3_REG: EN_XTAL (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL3_REG_TRIG_ID_Pos     (2UL)                     /*!< PDC PDC_CTRL3_REG: TRIG_ID (Bit 2)                    */
+#define PDC_PDC_CTRL3_REG_TRIG_ID_Msk     (0x7cUL)                  /*!< PDC PDC_CTRL3_REG: TRIG_ID (Bitfield-Mask: 0x1f)      */
+#define PDC_PDC_CTRL3_REG_TRIG_SELECT_Pos (0UL)                     /*!< PDC PDC_CTRL3_REG: TRIG_SELECT (Bit 0)                */
+#define PDC_PDC_CTRL3_REG_TRIG_SELECT_Msk (0x3UL)                   /*!< PDC PDC_CTRL3_REG: TRIG_SELECT (Bitfield-Mask: 0x03)  */
+/* =====================================================  PDC_CTRL4_REG  ===================================================== */
+#define PDC_PDC_CTRL4_REG_PDC_MASTER_Pos  (11UL)                    /*!< PDC PDC_CTRL4_REG: PDC_MASTER (Bit 11)                */
+#define PDC_PDC_CTRL4_REG_PDC_MASTER_Msk  (0x1800UL)                /*!< PDC PDC_CTRL4_REG: PDC_MASTER (Bitfield-Mask: 0x03)   */
+#define PDC_PDC_CTRL4_REG_EN_COM_Pos      (10UL)                    /*!< PDC PDC_CTRL4_REG: EN_COM (Bit 10)                    */
+#define PDC_PDC_CTRL4_REG_EN_COM_Msk      (0x400UL)                 /*!< PDC PDC_CTRL4_REG: EN_COM (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL4_REG_EN_PER_Pos      (9UL)                     /*!< PDC PDC_CTRL4_REG: EN_PER (Bit 9)                     */
+#define PDC_PDC_CTRL4_REG_EN_PER_Msk      (0x200UL)                 /*!< PDC PDC_CTRL4_REG: EN_PER (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL4_REG_EN_TMR_Pos      (8UL)                     /*!< PDC PDC_CTRL4_REG: EN_TMR (Bit 8)                     */
+#define PDC_PDC_CTRL4_REG_EN_TMR_Msk      (0x100UL)                 /*!< PDC PDC_CTRL4_REG: EN_TMR (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL4_REG_EN_XTAL_Pos     (7UL)                     /*!< PDC PDC_CTRL4_REG: EN_XTAL (Bit 7)                    */
+#define PDC_PDC_CTRL4_REG_EN_XTAL_Msk     (0x80UL)                  /*!< PDC PDC_CTRL4_REG: EN_XTAL (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL4_REG_TRIG_ID_Pos     (2UL)                     /*!< PDC PDC_CTRL4_REG: TRIG_ID (Bit 2)                    */
+#define PDC_PDC_CTRL4_REG_TRIG_ID_Msk     (0x7cUL)                  /*!< PDC PDC_CTRL4_REG: TRIG_ID (Bitfield-Mask: 0x1f)      */
+#define PDC_PDC_CTRL4_REG_TRIG_SELECT_Pos (0UL)                     /*!< PDC PDC_CTRL4_REG: TRIG_SELECT (Bit 0)                */
+#define PDC_PDC_CTRL4_REG_TRIG_SELECT_Msk (0x3UL)                   /*!< PDC PDC_CTRL4_REG: TRIG_SELECT (Bitfield-Mask: 0x03)  */
+/* =====================================================  PDC_CTRL5_REG  ===================================================== */
+#define PDC_PDC_CTRL5_REG_PDC_MASTER_Pos  (11UL)                    /*!< PDC PDC_CTRL5_REG: PDC_MASTER (Bit 11)                */
+#define PDC_PDC_CTRL5_REG_PDC_MASTER_Msk  (0x1800UL)                /*!< PDC PDC_CTRL5_REG: PDC_MASTER (Bitfield-Mask: 0x03)   */
+#define PDC_PDC_CTRL5_REG_EN_COM_Pos      (10UL)                    /*!< PDC PDC_CTRL5_REG: EN_COM (Bit 10)                    */
+#define PDC_PDC_CTRL5_REG_EN_COM_Msk      (0x400UL)                 /*!< PDC PDC_CTRL5_REG: EN_COM (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL5_REG_EN_PER_Pos      (9UL)                     /*!< PDC PDC_CTRL5_REG: EN_PER (Bit 9)                     */
+#define PDC_PDC_CTRL5_REG_EN_PER_Msk      (0x200UL)                 /*!< PDC PDC_CTRL5_REG: EN_PER (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL5_REG_EN_TMR_Pos      (8UL)                     /*!< PDC PDC_CTRL5_REG: EN_TMR (Bit 8)                     */
+#define PDC_PDC_CTRL5_REG_EN_TMR_Msk      (0x100UL)                 /*!< PDC PDC_CTRL5_REG: EN_TMR (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL5_REG_EN_XTAL_Pos     (7UL)                     /*!< PDC PDC_CTRL5_REG: EN_XTAL (Bit 7)                    */
+#define PDC_PDC_CTRL5_REG_EN_XTAL_Msk     (0x80UL)                  /*!< PDC PDC_CTRL5_REG: EN_XTAL (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL5_REG_TRIG_ID_Pos     (2UL)                     /*!< PDC PDC_CTRL5_REG: TRIG_ID (Bit 2)                    */
+#define PDC_PDC_CTRL5_REG_TRIG_ID_Msk     (0x7cUL)                  /*!< PDC PDC_CTRL5_REG: TRIG_ID (Bitfield-Mask: 0x1f)      */
+#define PDC_PDC_CTRL5_REG_TRIG_SELECT_Pos (0UL)                     /*!< PDC PDC_CTRL5_REG: TRIG_SELECT (Bit 0)                */
+#define PDC_PDC_CTRL5_REG_TRIG_SELECT_Msk (0x3UL)                   /*!< PDC PDC_CTRL5_REG: TRIG_SELECT (Bitfield-Mask: 0x03)  */
+/* =====================================================  PDC_CTRL6_REG  ===================================================== */
+#define PDC_PDC_CTRL6_REG_PDC_MASTER_Pos  (11UL)                    /*!< PDC PDC_CTRL6_REG: PDC_MASTER (Bit 11)                */
+#define PDC_PDC_CTRL6_REG_PDC_MASTER_Msk  (0x1800UL)                /*!< PDC PDC_CTRL6_REG: PDC_MASTER (Bitfield-Mask: 0x03)   */
+#define PDC_PDC_CTRL6_REG_EN_COM_Pos      (10UL)                    /*!< PDC PDC_CTRL6_REG: EN_COM (Bit 10)                    */
+#define PDC_PDC_CTRL6_REG_EN_COM_Msk      (0x400UL)                 /*!< PDC PDC_CTRL6_REG: EN_COM (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL6_REG_EN_PER_Pos      (9UL)                     /*!< PDC PDC_CTRL6_REG: EN_PER (Bit 9)                     */
+#define PDC_PDC_CTRL6_REG_EN_PER_Msk      (0x200UL)                 /*!< PDC PDC_CTRL6_REG: EN_PER (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL6_REG_EN_TMR_Pos      (8UL)                     /*!< PDC PDC_CTRL6_REG: EN_TMR (Bit 8)                     */
+#define PDC_PDC_CTRL6_REG_EN_TMR_Msk      (0x100UL)                 /*!< PDC PDC_CTRL6_REG: EN_TMR (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL6_REG_EN_XTAL_Pos     (7UL)                     /*!< PDC PDC_CTRL6_REG: EN_XTAL (Bit 7)                    */
+#define PDC_PDC_CTRL6_REG_EN_XTAL_Msk     (0x80UL)                  /*!< PDC PDC_CTRL6_REG: EN_XTAL (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL6_REG_TRIG_ID_Pos     (2UL)                     /*!< PDC PDC_CTRL6_REG: TRIG_ID (Bit 2)                    */
+#define PDC_PDC_CTRL6_REG_TRIG_ID_Msk     (0x7cUL)                  /*!< PDC PDC_CTRL6_REG: TRIG_ID (Bitfield-Mask: 0x1f)      */
+#define PDC_PDC_CTRL6_REG_TRIG_SELECT_Pos (0UL)                     /*!< PDC PDC_CTRL6_REG: TRIG_SELECT (Bit 0)                */
+#define PDC_PDC_CTRL6_REG_TRIG_SELECT_Msk (0x3UL)                   /*!< PDC PDC_CTRL6_REG: TRIG_SELECT (Bitfield-Mask: 0x03)  */
+/* =====================================================  PDC_CTRL7_REG  ===================================================== */
+#define PDC_PDC_CTRL7_REG_PDC_MASTER_Pos  (11UL)                    /*!< PDC PDC_CTRL7_REG: PDC_MASTER (Bit 11)                */
+#define PDC_PDC_CTRL7_REG_PDC_MASTER_Msk  (0x1800UL)                /*!< PDC PDC_CTRL7_REG: PDC_MASTER (Bitfield-Mask: 0x03)   */
+#define PDC_PDC_CTRL7_REG_EN_COM_Pos      (10UL)                    /*!< PDC PDC_CTRL7_REG: EN_COM (Bit 10)                    */
+#define PDC_PDC_CTRL7_REG_EN_COM_Msk      (0x400UL)                 /*!< PDC PDC_CTRL7_REG: EN_COM (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL7_REG_EN_PER_Pos      (9UL)                     /*!< PDC PDC_CTRL7_REG: EN_PER (Bit 9)                     */
+#define PDC_PDC_CTRL7_REG_EN_PER_Msk      (0x200UL)                 /*!< PDC PDC_CTRL7_REG: EN_PER (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL7_REG_EN_TMR_Pos      (8UL)                     /*!< PDC PDC_CTRL7_REG: EN_TMR (Bit 8)                     */
+#define PDC_PDC_CTRL7_REG_EN_TMR_Msk      (0x100UL)                 /*!< PDC PDC_CTRL7_REG: EN_TMR (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL7_REG_EN_XTAL_Pos     (7UL)                     /*!< PDC PDC_CTRL7_REG: EN_XTAL (Bit 7)                    */
+#define PDC_PDC_CTRL7_REG_EN_XTAL_Msk     (0x80UL)                  /*!< PDC PDC_CTRL7_REG: EN_XTAL (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL7_REG_TRIG_ID_Pos     (2UL)                     /*!< PDC PDC_CTRL7_REG: TRIG_ID (Bit 2)                    */
+#define PDC_PDC_CTRL7_REG_TRIG_ID_Msk     (0x7cUL)                  /*!< PDC PDC_CTRL7_REG: TRIG_ID (Bitfield-Mask: 0x1f)      */
+#define PDC_PDC_CTRL7_REG_TRIG_SELECT_Pos (0UL)                     /*!< PDC PDC_CTRL7_REG: TRIG_SELECT (Bit 0)                */
+#define PDC_PDC_CTRL7_REG_TRIG_SELECT_Msk (0x3UL)                   /*!< PDC PDC_CTRL7_REG: TRIG_SELECT (Bitfield-Mask: 0x03)  */
+/* =====================================================  PDC_CTRL8_REG  ===================================================== */
+#define PDC_PDC_CTRL8_REG_PDC_MASTER_Pos  (11UL)                    /*!< PDC PDC_CTRL8_REG: PDC_MASTER (Bit 11)                */
+#define PDC_PDC_CTRL8_REG_PDC_MASTER_Msk  (0x1800UL)                /*!< PDC PDC_CTRL8_REG: PDC_MASTER (Bitfield-Mask: 0x03)   */
+#define PDC_PDC_CTRL8_REG_EN_COM_Pos      (10UL)                    /*!< PDC PDC_CTRL8_REG: EN_COM (Bit 10)                    */
+#define PDC_PDC_CTRL8_REG_EN_COM_Msk      (0x400UL)                 /*!< PDC PDC_CTRL8_REG: EN_COM (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL8_REG_EN_PER_Pos      (9UL)                     /*!< PDC PDC_CTRL8_REG: EN_PER (Bit 9)                     */
+#define PDC_PDC_CTRL8_REG_EN_PER_Msk      (0x200UL)                 /*!< PDC PDC_CTRL8_REG: EN_PER (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL8_REG_EN_TMR_Pos      (8UL)                     /*!< PDC PDC_CTRL8_REG: EN_TMR (Bit 8)                     */
+#define PDC_PDC_CTRL8_REG_EN_TMR_Msk      (0x100UL)                 /*!< PDC PDC_CTRL8_REG: EN_TMR (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL8_REG_EN_XTAL_Pos     (7UL)                     /*!< PDC PDC_CTRL8_REG: EN_XTAL (Bit 7)                    */
+#define PDC_PDC_CTRL8_REG_EN_XTAL_Msk     (0x80UL)                  /*!< PDC PDC_CTRL8_REG: EN_XTAL (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL8_REG_TRIG_ID_Pos     (2UL)                     /*!< PDC PDC_CTRL8_REG: TRIG_ID (Bit 2)                    */
+#define PDC_PDC_CTRL8_REG_TRIG_ID_Msk     (0x7cUL)                  /*!< PDC PDC_CTRL8_REG: TRIG_ID (Bitfield-Mask: 0x1f)      */
+#define PDC_PDC_CTRL8_REG_TRIG_SELECT_Pos (0UL)                     /*!< PDC PDC_CTRL8_REG: TRIG_SELECT (Bit 0)                */
+#define PDC_PDC_CTRL8_REG_TRIG_SELECT_Msk (0x3UL)                   /*!< PDC PDC_CTRL8_REG: TRIG_SELECT (Bitfield-Mask: 0x03)  */
+/* =====================================================  PDC_CTRL9_REG  ===================================================== */
+#define PDC_PDC_CTRL9_REG_PDC_MASTER_Pos  (11UL)                    /*!< PDC PDC_CTRL9_REG: PDC_MASTER (Bit 11)                */
+#define PDC_PDC_CTRL9_REG_PDC_MASTER_Msk  (0x1800UL)                /*!< PDC PDC_CTRL9_REG: PDC_MASTER (Bitfield-Mask: 0x03)   */
+#define PDC_PDC_CTRL9_REG_EN_COM_Pos      (10UL)                    /*!< PDC PDC_CTRL9_REG: EN_COM (Bit 10)                    */
+#define PDC_PDC_CTRL9_REG_EN_COM_Msk      (0x400UL)                 /*!< PDC PDC_CTRL9_REG: EN_COM (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL9_REG_EN_PER_Pos      (9UL)                     /*!< PDC PDC_CTRL9_REG: EN_PER (Bit 9)                     */
+#define PDC_PDC_CTRL9_REG_EN_PER_Msk      (0x200UL)                 /*!< PDC PDC_CTRL9_REG: EN_PER (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL9_REG_EN_TMR_Pos      (8UL)                     /*!< PDC PDC_CTRL9_REG: EN_TMR (Bit 8)                     */
+#define PDC_PDC_CTRL9_REG_EN_TMR_Msk      (0x100UL)                 /*!< PDC PDC_CTRL9_REG: EN_TMR (Bitfield-Mask: 0x01)       */
+#define PDC_PDC_CTRL9_REG_EN_XTAL_Pos     (7UL)                     /*!< PDC PDC_CTRL9_REG: EN_XTAL (Bit 7)                    */
+#define PDC_PDC_CTRL9_REG_EN_XTAL_Msk     (0x80UL)                  /*!< PDC PDC_CTRL9_REG: EN_XTAL (Bitfield-Mask: 0x01)      */
+#define PDC_PDC_CTRL9_REG_TRIG_ID_Pos     (2UL)                     /*!< PDC PDC_CTRL9_REG: TRIG_ID (Bit 2)                    */
+#define PDC_PDC_CTRL9_REG_TRIG_ID_Msk     (0x7cUL)                  /*!< PDC PDC_CTRL9_REG: TRIG_ID (Bitfield-Mask: 0x1f)      */
+#define PDC_PDC_CTRL9_REG_TRIG_SELECT_Pos (0UL)                     /*!< PDC PDC_CTRL9_REG: TRIG_SELECT (Bit 0)                */
+#define PDC_PDC_CTRL9_REG_TRIG_SELECT_Msk (0x3UL)                   /*!< PDC PDC_CTRL9_REG: TRIG_SELECT (Bitfield-Mask: 0x03)  */
+/* =================================================  PDC_PENDING_CM33_REG  ================================================== */
+#define PDC_PDC_PENDING_CM33_REG_PDC_PENDING_Pos (0UL)              /*!< PDC PDC_PENDING_CM33_REG: PDC_PENDING (Bit 0)         */
+#define PDC_PDC_PENDING_CM33_REG_PDC_PENDING_Msk (0xffffUL)         /*!< PDC PDC_PENDING_CM33_REG: PDC_PENDING (Bitfield-Mask: 0xffff) */
+/* =================================================  PDC_PENDING_CMAC_REG  ================================================== */
+#define PDC_PDC_PENDING_CMAC_REG_PDC_PENDING_Pos (0UL)              /*!< PDC PDC_PENDING_CMAC_REG: PDC_PENDING (Bit 0)         */
+#define PDC_PDC_PENDING_CMAC_REG_PDC_PENDING_Msk (0xffffUL)         /*!< PDC PDC_PENDING_CMAC_REG: PDC_PENDING (Bitfield-Mask: 0xffff) */
+/* ====================================================  PDC_PENDING_REG  ==================================================== */
+#define PDC_PDC_PENDING_REG_PDC_PENDING_Pos (0UL)                   /*!< PDC PDC_PENDING_REG: PDC_PENDING (Bit 0)              */
+#define PDC_PDC_PENDING_REG_PDC_PENDING_Msk (0xffffUL)              /*!< PDC PDC_PENDING_REG: PDC_PENDING (Bitfield-Mask: 0xffff) */
+/* ==================================================  PDC_PENDING_SNC_REG  ================================================== */
+#define PDC_PDC_PENDING_SNC_REG_PDC_PENDING_Pos (0UL)               /*!< PDC PDC_PENDING_SNC_REG: PDC_PENDING (Bit 0)          */
+#define PDC_PDC_PENDING_SNC_REG_PDC_PENDING_Msk (0xffffUL)          /*!< PDC PDC_PENDING_SNC_REG: PDC_PENDING (Bitfield-Mask: 0xffff) */
+/* ==================================================  PDC_SET_PENDING_REG  ================================================== */
+#define PDC_PDC_SET_PENDING_REG_PDC_SET_PENDING_Pos (0UL)           /*!< PDC PDC_SET_PENDING_REG: PDC_SET_PENDING (Bit 0)      */
+#define PDC_PDC_SET_PENDING_REG_PDC_SET_PENDING_Msk (0x1fUL)        /*!< PDC PDC_SET_PENDING_REG: PDC_SET_PENDING (Bitfield-Mask: 0x1f) */
+
+/** @} */ /* End of group PosMask_peripherals */
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* D2763X_H */
+
+
+/** @} */ /* End of group D2763x */
+
+/** @} */ /* End of group Dialog */
diff --git a/hw/mcu/dialog/include/system_CMAC.h b/hw/mcu/dialog/include/system_CMAC.h
new file mode 100644
index 0000000..f08c1ff
--- /dev/null
+++ b/hw/mcu/dialog/include/system_CMAC.h
@@ -0,0 +1,267 @@
+/*
+ * Copyright (C) 2019 Dialog Semiconductor. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ * - Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * - Neither the name of Dialog Semiconductor nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef _SYSTEM_D2763_INCLUDED
+#define _SYSTEM_D2763_INCLUDED
+
+// From datasheet.h:
+
+/*--GPIO PID functions-------------------------------------------------------------------------*/
+#define FUNC_GPIO              (0)
+#define FUNC_UART_RX           (1)
+#define FUNC_UART_TX           (2)
+#define FUNC_UART2_RX          (3)
+#define FUNC_UART2_TX          (4)
+#define FUNC_UART2_CTSN        (5)
+#define FUNC_UART2_RTSN        (6)
+#define FUNC_UART3_RX          (7)
+#define FUNC_UART3_TX          (8)
+#define FUNC_UART3_CTSN        (9)
+#define FUNC_UART3_RTSN        (10)
+#define FUNC_ISO_CLK           (11)
+#define FUNC_ISO_DATA          (12)
+#define FUNC_SPI_DI            (13)
+#define FUNC_SPI_DO            (14)
+#define FUNC_SPI_CLK           (15)
+#define FUNC_SPI_EN            (16)
+#define FUNC_SPI2_DI           (17)
+#define FUNC_SPI2_DO           (18)
+#define FUNC_SPI2_CLK          (19)
+#define FUNC_SPI2_EN           (20)
+#define FUNC_I2C_SCL           (21)
+#define FUNC_I2C_SDA           (22)
+#define FUNC_I2C2_SCL          (23)
+#define FUNC_I2C2_SDA          (24)
+#define FUNC_USB_SOF           (25)
+#define FUNC_ADC               (26)
+#define FUNC_USB               (27)
+#define FUNC_CMAC_DIAG4        (28)
+#define FUNC_CMAC_DIAG5        (29)
+#define FUNC_CMAC_DIAG6        (30)
+#define FUNC_CMAC_DIAG7        (31)
+#define FUNC_CMAC_DIAG8        (32)
+#define FUNC_CMAC_DIAG9        (33)
+#define FUNC_COEX_EXT_ACT      (34)
+#define FUNC_COEX_SMART_ACT    (35)
+#define FUNC_COEX_SMART_PRI    (36)
+#define FUNC_PORT0_DCF         (37)
+#define FUNC_PORT1_DCF         (38)
+#define FUNC_PORT2_DCF         (39)
+#define FUNC_PORT3_DCF         (40)
+#define FUNC_PORT4_DCF         (41)
+#define FUNC_CLOCK             (42)
+#define FUNC_CMAC_DIAG10       (43)
+#define FUNC_CMAC_DIAG11       (44)
+#define FUNC_CMAC_DIAG12       (45)
+#define FUNC_CMAC_DIAG13       (46)
+#define FUNC_CMAC_DIAG14       (47)
+#define FUNC_CMAC_DIAG15       (48)
+#define FUNC_TIM_PWM           (49)
+#define FUNC_TIM2_PWM          (50)
+#define FUNC_TIM_1SHOT         (51)
+#define FUNC_TIM2_1SHOT        (52)
+#define FUNC_TIM3_PWM          (53)
+#define FUNC_TIM4_PWM          (54)
+#define FUNC_AGC_EXT           (55)
+#define FUNC_CMAC_DIAG0        (56)
+#define FUNC_CMAC_DIAG1        (57)
+#define FUNC_CMAC_DIAG2        (58)
+#define FUNC_CMAC_DIAG3        (59)
+#define FUNC_SWI               (60)
+/*--GPIO Direction settings---------------------------------------------------------------------*/
+#define DIR_INPUT              0x000
+#define DIR_PULLUP             0x100
+#define DIR_PULLDOWN           0x200
+#define DIR_OUTPUT             0x300
+
+// code copied from global_functions.h
+
+#if defined(CORTEX_M33)
+typedef enum {
+/* =======================================  ARM Cortex-M33 Specific Interrupt Numbers  ======================================= */
+  Reset_IRQn                = -15,              /*!< -15  Reset Vector, invoked on Power up and warm reset                     */
+  NonMaskableInt_IRQn       = -14,              /*!< -14  Non maskable Interrupt, cannot be stopped or preempted               */
+  HardFault_IRQn            = -13,              /*!< -13  Hard Fault, all classes of Fault                                     */
+  MemoryManagement_IRQn     = -12,              /*!< -12  Memory Management, MPU mismatch, including Access Violation
+                                                     and No Match                                                              */
+  BusFault_IRQn             = -11,              /*!< -11  Bus Fault, Pre-Fetch-, Memory Access Fault, other address/memory
+                                                     related Fault                                                             */
+  UsageFault_IRQn           = -10,              /*!< -10  Usage Fault, i.e. Undef Instruction, Illegal State Transition        */
+  SecureFault_IRQn          =  -9,              /*!< -9 Secure Fault Handler                                                   */
+  SVCall_IRQn               =  -5,              /*!< -5 System Service Call via SVC instruction                                */
+  DebugMonitor_IRQn         =  -4,              /*!< -4 Debug Monitor                                                          */
+  PendSV_IRQn               =  -2,              /*!< -2 Pendable request for system service                                    */
+  SysTick_IRQn              =  -1,              /*!< -1 System Tick Timer                                                      */
+/* ==========================================  DA1469x Specific Interrupt Numbers  =========================================== */
+  SNC_IRQn                  =   0,              /*!< 0  Sensor Node Controller interrupt request.                              */
+  DMA_IRQn                  =   1,              /*!< 1  General Purpose DMA interrupt request.                                 */
+  CHARGER_STATE_IRQn        =   2,              /*!< 2  Charger State interrupt request.                                       */
+  CHARGER_ERROR_IRQn        =   3,              /*!< 3  Charger Error interrupt request.                                       */
+  CMAC2SYS_IRQn             =   4,              /*!< 4  CMAC and mailbox interrupt request.                                    */
+  UART_IRQn                 =   5,              /*!< 5  UART interrupt request.                                                */
+  UART2_IRQn                =   6,              /*!< 6  UART2 interrupt request.                                               */
+  UART3_IRQn                =   7,              /*!< 7  UART3 interrupt request.                                               */
+  I2C_IRQn                  =   8,              /*!< 8  I2C interrupt request.                                                 */
+  I2C2_IRQn                 =   9,              /*!< 9  I2C2 interrupt request.                                                */
+  SPI_IRQn                  =  10,              /*!< 10 SPI interrupt request.                                                 */
+  SPI2_IRQn                 =  11,              /*!< 11 SPI2 interrupt request.                                                */
+  RESERVED12_IRQn           =  12,              /*!< 12 SoftWare interrupt request.                                            */
+  RESERVED13_IRQn           =  13,              /*!< 13 SoftWare interrupt request.                                            */
+  RESERVED14_IRQn           =  14,              /*!< 14 SoftWare interrupt request.                                            */
+  USB_IRQn                  =  15,              /*!< 15 USB interrupt request.                                                 */
+  TIMER_IRQn                =  16,              /*!< 16 TIMER interrupt request.                                               */
+  TIMER2_IRQn               =  17,              /*!< 17 TIMER2 interrupt request.                                              */
+  RTC_IRQn                  =  18,              /*!< 18 RTC interrupt request.                                                 */
+  KEY_WKUP_GPIO_IRQn        =  19,              /*!< 19 Debounced button press interrupt request.                              */
+  PDC_IRQn                  =  20,              /*!< 20 Wakeup IRQ from PDC to CM33                                            */
+  VBUS_IRQn                 =  21,              /*!< 21 VBUS presence interrupt request.                                       */
+  MRM_IRQn                  =  22,              /*!< 22 Cache Miss Rate Monitor interrupt request.                             */
+  DCDC_BOOST_IRQn           =  23,              /*!< 23 DCDC Boost interrupt request.                                          */
+  TRNG_IRQn                 =  24,              /*!< 24 True Random Number Generation interrupt request.                       */
+  DCDC_IRQn                 =  25,              /*!< 25 DCDC interrupt request.                                                */
+  XTAL32M_RDY_IRQn          =  26,              /*!< 26 XTAL32M trimmed and ready interrupt request.                           */
+  GPADC_IRQn                =  27,              /*!< 27 General Purpose Analog-Digital Converter interrupt request.            */
+  SDADC_IRQn                =  28,              /*!< 28 Sigma Delta Analog-Digital Converter interrupt request.                */
+  CRYPTO_IRQn               =  29,              /*!< 29 Crypto interrupt request.                                              */
+  CAPTIMER_IRQn             =  30,              /*!< 30 GPIO triggered Timer Capture interrupt request.                        */
+  RFDIAG_IRQn               =  31,              /*!< 31 Baseband or Radio Diagnostics interrupt request.                       */
+  RESERVED32_IRQn           =  32,              /*!< 32 SoftWare interrupt request.                                            */
+  PLL_LOCK_IRQn             =  33,              /*!< 33 Pll lock interrupt request.                                            */
+  TIMER3_IRQn               =  34,              /*!< 34 TIMER3 interrupt request.                                              */
+  TIMER4_IRQn               =  35,              /*!< 35 TIMER4 interrupt request.                                              */
+  LRA_IRQn                  =  36,              /*!< 36 LRA/ERM interrupt request.                                             */
+  RTC_EVENT_IRQn            =  37,              /*!< 37 RTC event interrupt request.                                           */
+  GPIO_P0_IRQn              =  38,              /*!< 38 GPIO port 0 toggle interrupt request.                                  */
+  GPIO_P1_IRQn              =  39,              /*!< 39 GPIO port 1 toggle interrupt request.                                  */
+  SWIC_IRQn                 =  40,              /*!< 40 Single Wire Interface Controller interrupt request.                    */
+  RESERVED41_IRQn           =  41,              /*!< 41 SoftWare interrupt request.                                            */
+  RESERVED42_IRQn           =  42,              /*!< 42 SoftWare interrupt request.                                            */
+  RESERVED43_IRQn           =  43,              /*!< 43 SoftWare interrupt request.                                            */
+  RESERVED44_IRQn           =  44,              /*!< 44 SoftWare interrupt request.                                            */
+  RESERVED45_IRQn           =  45,              /*!< 45 SoftWare interrupt request.                                            */
+  RESERVED46_IRQn           =  46,              /*!< 46 SoftWare interrupt request.                                            */
+  RESERVED47_IRQn           =  47               /*!< 47 SoftWare interrupt request.                                            */
+} IRQn_Type;
+
+
+#define __CM33_REV                 0x0000U      /*!< CM33 Core Revision                                                        */
+#define __NVIC_PRIO_BITS               3        /*!< Number of Bits used for Priority Levels                                   */
+#define __Vendor_SysTickConfig         0        /*!< Set to 1 if different SysTick Config is used                              */
+#define __VTOR_PRESENT                 0        /*!< Set to 1 if CPU supports Vector Table Offset Register                     */
+#define __MPU_PRESENT                  0        /*!< MPU present or not                                                        */
+#define __FPU_PRESENT                  1        /*!< FPU present or not                                                        */
+#define __FPU_DP                       0        /*!< Double Precision FPU                                                      */
+#define __SAU_REGION_PRESENT           1        /*!< SAU present or not                                                        */
+#define __DSP_PRESENT                  1
+
+
+#include "core_cm33.h"
+#ifndef TARGET_LAB
+#include "cmsis_mtb.h"
+#endif
+
+#else  // if defined(CORTEX_M0PLUS)
+
+typedef enum IRQn {
+/****** Cortex-M0 Processor Exceptions Numbers *****************************************/
+NMI_IRQn             = -14, /*  2 Non Maskable Interrupt.                              */
+HardFault_IRQn       = -13, /*  3 Cortex-M0 Hard Fault Interrupt.                      */
+SVCall_IRQn          =  -5, /* 11 Cortex-M0 SV Call Interrupt.                         */
+PendSV_IRQn          =  -2, /* 14 Cortex-M0 Pend SV Interrupt.                         */
+SysTick_IRQn         =  -1, /* 15 Cortex-M0 System Tick Interrupt.                     */
+/****** CMAC CM0P Specific Interrupt Numbers *******************************************/
+FIELD_IRQn           =  0,
+CALLBACK_IRQn        =  1,
+FRAME_IRQn           =  2,
+DIAG_IRQn            =  3,
+HW_GEN_IRQn          =  4,
+SW_MAC_IRQn          =  5,
+LL_TIMER2PRMTV_IRQn  =  6,
+LL_TIMER2LLC_IRQn    =  7,
+CRYPTO_IRQn          =  8,
+SW_LLC_1_IRQn        =  9,
+SW_LLC_2_IRQn        = 10,
+SW_LLC_3_IRQn        = 11,
+SYS2CMAC_IRQn        = 12
+} IRQn_Type;
+
+/* Configuration of the Cortex-M0+ Processor and Core Peripherals */
+#define __CM0_REV                 0x0000    /*!< Core Revision r2p1                               */
+#define __NVIC_PRIO_BITS          2         /*!< Number of Bits used for Priority Levels          */
+#define __Vendor_SysTickConfig    0         /*!< Set to 1 if different SysTick Config is used     */
+//#define __MPU_PRESENT             1       /*!< MPU present or not                               */
+//#define __VTOR_PRESENT            1       /*!< Cortex-M0+ can support the VTOR                  */
+
+#include "core_cm0plus.h"                   /* Cortex-M0+ processor and core peripherals          */
+//#include "system_CMSDK_CM0plus.h"         /* CMSDK_CM0plus System  include file                 */
+
+
+#endif // if defined(CORTEX_M0PLUS)
+
+// non-core specific code:
+
+#ifndef __IM                                    /*!< Fallback for older CMSIS versions                                         */
+  #define __IM   __I
+#endif
+#ifndef __OM                                    /*!< Fallback for older CMSIS versions                                         */
+  #define __OM   __O
+#endif
+#ifndef __IOM                                   /*!< Fallback for older CMSIS versions                                         */
+  #define __IOM  __IO
+#endif
+
+
+/* ========================================  Start of section using anonymous unions  ======================================== */
+#if defined (__CC_ARM)
+  #pragma push
+  #pragma anon_unions
+#elif defined (__ICCARM__)
+  #pragma language=extended
+#elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
+  #pragma clang diagnostic push
+  #pragma clang diagnostic ignored "-Wc11-extensions"
+  #pragma clang diagnostic ignored "-Wreserved-id-macro"
+  #pragma clang diagnostic ignored "-Wgnu-anonymous-struct"
+  #pragma clang diagnostic ignored "-Wnested-anon-types"
+#elif defined (__GNUC__)
+  /* anonymous unions are enabled by default */
+#elif defined (__TMS470__)
+  /* anonymous unions are enabled by default */
+#elif defined (__TASKING__)
+  #pragma warning 586
+#elif defined (__CSMC__)
+  /* anonymous unions are enabled by default */
+#else
+  #warning Not supported compiler type
+#endif
+
+
+
+
+
+
+#endif //_SYSTEM_D2763_INCLUDED


[mynewt-core] 05/05: Update RAT excludes

Posted by an...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit a25a08db9b884be617cb4c96b2056076d873c530
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Mon Sep 21 09:14:34 2020 +0200

    Update RAT excludes
---
 .rat-excludes | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.rat-excludes b/.rat-excludes
index 7c075f5..1a350ae 100644
--- a/.rat-excludes
+++ b/.rat-excludes
@@ -509,6 +509,9 @@ reel_board
 dialog_da1469x-dk-pro
 da1469x
 DA1469xAB.h
+cmac.ld
+CMAC.h
+system_CMAC.h
 
 # Bosch BMP388 driver - BSD License
 bmp388


[mynewt-core] 03/05: travis: Ignore dialog_cmac

Posted by an...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 400421b5c2d2cd3c88ce6c2bfa751cd114535742
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Thu Sep 3 13:01:30 2020 +0200

    travis: Ignore dialog_cmac
    
    dialog_cmac BSP is not really meant to run anything other than NimBLE
    controller (not even blinky) so just ignore it.
---
 .travis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index e05cbc0..4407e92 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -183,7 +183,7 @@ script:
   # NOTE: "native" is here to avoid having to install gcc-multilib
   - export IGNORED_BSPS="ci40 embarc_emsk hifive1 native-armv7 native-mips
                          pic32mx470_6lp_clicker pic32mz2048_wi-fire sensorhub
-                         native"
+                         native dialog_cmac"
   - |
     if [ "${TEST}" == "STYLE" ]; then
       python3 $HOME/ci/check_style.py


[mynewt-core] 04/05: Update LICENSE for CMAC

Posted by an...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit c17204a0cbc77eb2258f5e800d895830b5744cc9
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Fri Sep 18 12:43:29 2020 +0200

    Update LICENSE for CMAC
---
 LICENSE | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/LICENSE b/LICENSE
index 7afce1a..9cc5ceb 100644
--- a/LICENSE
+++ b/LICENSE
@@ -457,6 +457,7 @@ This product bundles FATFS, which is available under a
 This product bundles part of linker scripts from Nordic Semiconductor,
 which is available under the "modified Tcl/Tk" license.  Bundled files are:
     * hw/mcu/ambiq/apollo2/apollo2.ld
+    * hw/mcu/dialog/cmac/cmac.ld
     * hw/mcu/dialog/da1469x/da1469x.ld
     * hw/mcu/dialog/da1469x/da1469x_ram_resident.ld
     * hw/mcu/nordic/nrf51xxx/nrf51.ld
@@ -691,6 +692,8 @@ under the "3-clause BSD" license. For details, see:
 This product bundles part of DA1469 SDK by Dialog Semiconductor which is
 available under the "3-clause BSD" license. Bundled files are:
     * hw/mcu/dialog/include/DA1469xAB.h
+    * hw/mcu/dialog/include/CMAC.h
+    * hw/mcu/dialog/include/system_CMAC.h
 
 This product bundles part of tinyusb which is available under the MIT license. Bundled files are:
     * hw/usb/tinyusb/std_descriptors/include/tusb_config.h